【发布时间】:2015-09-05 06:43:27
【问题描述】:
有没有直接从python shell发出命令行指令的方法?
【问题讨论】:
-
查看以下类似问题的答案:stackoverflow.com/questions/89228/…。
标签: python ubuntu command-line terminal
有没有直接从python shell发出命令行指令的方法?
【问题讨论】:
标签: python ubuntu command-line terminal
你可以使用os.system -
import os
os.system('<command line instruction>')
【讨论】: