+

概要Description

签名

s1: str + s2: str

功能

将 s1 和 s2 拼接合并

广告

案例Examples

正常情况

1 =
result = 'port: ' + '9917''port: 9917'

其它情况

两边均需为 str 类型,否则会报错

1! <
result = 'port: ' + 9917TypeError: can only concatenate str (not "int") to str
广告

ZZAX 微信公众

文档一更新,立刻告诉你