我需要能够得到一个字符串:
'''foo, bar, "one, two", three four'''
成:
['foo', 'bar', 'one, two', 'three four']
我有一种感觉(来自#python的提示)该解决方案将涉及shlex模块.
python quotes split escaping
escaping ×1
python ×1
quotes ×1
split ×1