python基础--用python执行系统命令

1 from os import system
2 print(system('ping www.baidu.com'))

 

posted @ 2016-10-13 12:25  矮人er  阅读(177)  评论(0)    收藏  举报