String
About 字串
長度與判斷
result = len("")
print(result)
> 0
result = len("") != 0
print(result)
> False
result = len("") == 0
print(result)
> True* to string
int to string
str(123)tuple to string
string to *
string to boolean
字串插入
string interpolation(字串插值)
不同類型的插值
f-strings (python3.6後)
去頭尾空白
Last updated