关于为什么要shlex.split
删除单引号有没有更新的解释?
>>> shlex.split("--one='a b c' --two=d")
['--one=a b c', '--two=d']
我期待上面的例子是:["--one='a b c'", '--two=d']
或者什么。
关于为什么要shlex.split
删除单引号有没有更新的解释?
>>> shlex.split("--one='a b c' --two=d")
['--one=a b c', '--two=d']
我期待上面的例子是:["--one='a b c'", '--two=d']
或者什么。