摘要:
Python执行终端命令有多种方法。 方法一 使用示例: import os os.system('ls') 该方法无法输出命令执行结果 方法二 使用示例: import os res = os.popen('ls').read() print(res) 该方法的返回值即命令输出结果 参考 http 阅读全文
posted @ 2023-06-25 15:26
Ghlerrix
阅读(56)
评论(0)
推荐(0)
浙公网安备 33010602011771号