📜  split() 与 split(' ') - Python 代码示例
📅  最后修改于: 2022-03-11 14:46:46.225000             🧑  作者: Mango
代码示例1
# split() vs split(' ')
sample = "a b "
sample.split()
>>> ['a', 'b']
sample.split(' ')
>>> ['a', '', 'b', '']