python(str)
- 字符串可以用 + 进行连接(粘到一起),也可以用 * 进行重复:
>>> # 3 times 'un', followed by 'ium'
>>> 3 * 'un' + 'ium'
'unununium'
- 相邻的两个或多个 字符串字面值 (引号引起来的字符)将会自动连接到一起.
>>> 'Py' 'thon'
'Python'
上一篇
python(list)
下一篇
Hello Gridea
/media/images/custom-bgimage.jpeg

