如何将Python命令另存为Python脚本

时间:2019-02-10 09:01:03

标签: python command

我有这个Python命令,并且希望将其保存为Python脚本

{% set csp_nonce...

但是,我不想使用'attachment-downloader --host mail.server.de --username test@test.de --password passwort123 --imap-folder INBOX.invoice --output ~/User/Downloads' ,如下所示

os.system

在脚本中使用os.system('attachment-downloader --host mail.server.de --username test@test.de --password passwort123 --imap-folder INBOX.invoice --output ~/User/Downloads') 来运行命令还有其他选择吗?

谢谢

0 个答案:

没有答案