📅  最后修改于: 2022-03-11 14:46:35.448000             🧑  作者: Mango
>>> teststr = "a v w ef sdv \n wef"
>>> print teststr
a v w ef sdv
wef
>>> teststr.split()
['a', 'v', 'w', 'ef', 'sdv', 'wef']
>>> teststr.split(" ")
['a', '', '', 'v', 'w', '', '', 'ef', 'sdv', '', '', '\n', '', '', 'wef']