python 里面怎么提取 空格分开的字符串

如题所述

s='hello! my word'print s.split()#输出结果为['hello!', 'my', 'word']
温馨提示:答案为网友推荐,仅供参考