用法:
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。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。