Document
Dayuser
 
社交按钮
963595946
首页
归档
标签
关于
友人帐

Powered by Dayuser | Theme: Fog
载入天数...
载入时分秒...
02/02/2020
2020-05-10
1 min read
python

python(str)

  1. 字符串可以用 + 进行连接(粘到一起),也可以用 * 进行重复:
>>> # 3 times 'un', followed by 'ium'
>>> 3 * 'un' + 'ium'
'unununium'
  1. 相邻的两个或多个 字符串字面值 (引号引起来的字符)将会自动连接到一起.
>>> 'Py' 'thon'
'Python'
上一篇 python(list)
下一篇 Hello Gridea
/media/images/custom-bgimage.jpeg
Dayuser  |
  • 首页
  • 归档
  • 标签
  • 关于
  • 友链
2020-05-10
1 min read
python

python(str)

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