用法:
shlex.join(split_command)连接列表
split_command的标记并返回一个字符串。此函数是split()的逆函数。>>> from shlex import join >>> print(join(['echo', '-n', 'Multiple words'])) echo -n 'Multiple words'返回值为shell-escaped 以防止注入漏洞(请参阅
quote())。3.8 版中的新函数。
相关用法
- Python shlex.quote用法及代码示例
- Python shutil.copyfile()用法及代码示例
- Python shutil.unregister_unpack_format()用法及代码示例
- Python shutil.get_terminal_size()用法及代码示例
- Python shutil.get_archive_formats()用法及代码示例
- Python shutil.which()用法及代码示例
- Python shutil.copytree()用法及代码示例
- Python shutil.copymode()用法及代码示例
- Python shutil.unpack_archive()用法及代码示例
- Python shutil.move()用法及代码示例
- Python shutil.copy2()用法及代码示例
- Python shutil.unregister_archive_format()用法及代码示例
- Python Wand sharpen()用法及代码示例
- Python shutil.chown()用法及代码示例
- Python shutil.copyfileobj()用法及代码示例
- Python shutil.copystat()用法及代码示例
- Python Wand shade()用法及代码示例
- Python shutil.copy()用法及代码示例
- Python shutil.get_unpack_formats()用法及代码示例
- Python shutil.disk_usage()用法及代码示例
注:本文由纯净天空筛选整理自python.org大神的英文原创作品 shlex.join。非经特殊声明,原始代码版权归原作者所有,本译文未经允许或授权,请勿转载或复制。
