2022-11-16 16:08
Python
s1 = "Hello"
s2 = "world"
s3 = s1 + " " + s2
print(s3) # 输出 "Hello world"
其中,字符串连接操作符 + 可以把多个字符串拼接起来,中间可以插入其他字符,比如空格、逗号、冒号等。在上面的代码中,使用空格将两个字符串连接起来,得到新的字符串 s3。
关于我们|免责条款|版权声明|侵权举报|隐私政策|联系我们
Copyright © 2025 IZhiDa.com All Rights Reserved.
知答 版权所有 粤ICP备2023042255号