天天看點

字元串的拼接 Python

1、+ 拼接

2 、 list 拼接

list = ['ni ','hao','bei','jing']
str = ' '.join(list )
           

3、format拼接