你需要
split
shlex
>>> import shlex>>> shlex.split('this is "a test"')['this', 'is', 'a test']
这应该正是你想要的。
上一篇 Python-如何使用timeit模块
下一篇 如何比较python中的两个列表并返回匹配项
版权所有 (c)2021-2022 MSHXW.COM
ICP备案号:晋ICP备2021003244-6号