Str1 = 'Hello, Dear friends, '
Str2 = 'welcome to CSDN '
# 字 符 串 拼 接
print(Str1 + Str2)
#乘法
print(Str2 * 2)
运行结果:
Str1 = 'Hello, Dear friends, '
Str2 = 'welcome to CSDN '
# 字 符 串 拼 接
print(Str1 + Str2)
#乘法
print(Str2 * 2)
运行结果:
上一篇:Python数据类型-数字格式化
java中字符串拼接的多种方式
I . 字符串定义I . 字符串拼接III . 字符串 API 调用IV . 字符串 Demo 示例
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M