Skip to content

Latest commit

 

History

History
14 lines (12 loc) · 279 Bytes

string-operations.md

File metadata and controls

14 lines (12 loc) · 279 Bytes

####字符串操作

+运算符也可以用于字符串,但不是像数学运算那样相加,而是将字符串连接在一起:

>>> first = 10
>>> second = 15
>>> print(first+second)
25
>>> first = '100'
>>> second = '150'
>>> print(first + second)
100150