str.split与
None参数(或无参数)上分割
所有 空白字符,这是不局限于 只是 你在使用空格键键入空格。
In [457]: text = 'thisnshouldrhelptyoufunderstand'In [458]: text.split()Out[458]: ['this', 'should', 'help', 'you', 'understand']In [459]: text.split(' ')Out[459]: ['thisnshouldrhelptyoux0cunderstand']的所有空格字符列表
split(None)上的拆分可以在这里找到所有空白字符?语言独立吗?



