결과 목록의 공백을 무시하지 않고 문자열을 분할하는 함수가 파이썬에 있습니까? 예 : s="This is the string I want to split".split()
는 >>> s
['This', 'is', 'the', 'string', 'I', 'want', 'to', 'split']
내가 ['This',' ','is',' ', 'the','
나는 같은 문자열을 할 수 있어야한다 : 나는이 솔루션은 shlex 모듈을 포함 위하여려고하고있다 (#python에서 힌트)는 느낌이 ['foo', 'bar', 'one, two', 'three four']
:에 '''foo, bar, "one, two", three four'''
.