python 学习os.systemsystem和os.popen

两个都可以执行系统命令,但是如果想要获取到命令的输出内容就要用到os.popen

com=os.popen('ls')

print(com.readlines())

原文地址:https://www.cnblogs.com/bnsdmmL/p/14073898.html