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
标签:int python col join and color split class pre
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
标签:int python col join and color split class pre
原文地址:https://www.cnblogs.com/jonm/p/8270519.html