擅长:python、mysql、java
<p>在python 3中,<code>pipes.quote</code>现在是<code>shlex.quote</code>。
使用这段代码很容易。</p>
<p><a href="https://github.com/python/cpython/blob/master/Lib/shlex.py#L281" rel="noreferrer">https://github.com/python/cpython/blob/master/Lib/shlex.py#L281</a></p>
<p>该版本正确处理零长度参数。</p>