对列表,字符串,元组,字典 进行操作,合并目录
1 s = 'hello world' 2 3 i = '-------' 4 5 print(i.join(s) )
1 s = 'hello world' 2 3 4 5 print('---------'.join(s) )
1 s = ('hello','world') 2 print('---------'.join(s) )
1 s = {'hello':1,'world':2} 2 print('---------'.join(s) )