python小技巧——怎么提取空格分开的字符串

mac2024-03-31  29

s=‘hello! my word’ print s.split() #输出结果为[‘hello!’, ‘my’, ‘word’]

最新回复(0)