Skip to content

Latest commit

 

History

History
18 lines (13 loc) · 412 Bytes

87.md

File metadata and controls

18 lines (13 loc) · 412 Bytes
@author jackzhenguo
@desc 
@date 2019/5/7

87 join 串联字符串

用逗号连接字符串

In [4]: mystr = ['1','2','java','4','python','java','7','8','java','python','11','java','13','14']

In [5]: ','.join(mystr) #用逗号连接字符串
Out[5]: '1,2,java,4,python,java,7,8,java,python,11,java,13,14'
[上一个例子](86.md) [下一个例子](88.md)