天天看点

python执行linux命令

import os

os.system("ls")

os.system("uname -a")

本文转自 王家东哥 51CTO博客,原文链接:http://blog.51cto.com/xiaodongge/1942150