草庐IT

unshellquote

全部标签

Python 模块到 shellquote/unshellquote?

这个问题在这里已经有了答案:Howtoescapeos.system()calls?(10个回答)关闭6年前。Python标准库中是否有任何东西可以正确解析/解析字符串以在shell命令中使用?我正在寻找perl的String::ShellQuote::shell_quote:的python模拟$printString::ShellQuote::shell_quote("hello","stack","overflow's","quite","cool")hellostack'overflow'\''s'quitecool而且,更重要的是,一些可以反向工作的东西(获取一个字符串并将其分

Python 模块到 shellquote/unshellquote?

这个问题在这里已经有了答案:Howtoescapeos.system()calls?(10个回答)关闭6年前。Python标准库中是否有任何东西可以正确解析/解析字符串以在shell命令中使用?我正在寻找perl的String::ShellQuote::shell_quote:的python模拟$printString::ShellQuote::shell_quote("hello","stack","overflow's","quite","cool")hellostack'overflow'\''s'quitecool而且,更重要的是,一些可以反向工作的东西(获取一个字符串并将其分