python3----split and join

1 s = "I am fine"
2 s = s.split(" ")
3 print(s)
4 print("%".join(s))
5 
6 results:
7 
8 ['I', 'am', 'fine']
9 I%am%fine

 

posted @ 2018-01-11 20:49  jonm  阅读(193)  评论(0编辑  收藏  举报