摘要:
os.system('cat /proc/cpuinfo') output = os.popen('cat /proc/cpuinfo') print output.read() 通过 os.popen() 返回的是 file read 的对象,对其进行读取 read() 的操作可以看到执行的输出。 阅读全文
posted @ 2020-09-02 15:24
chengxuyonghu
阅读(626)
评论(0)
推荐(0)
摘要:
#####baidu ip #######220.181.38.148220.181.38.133192.168.1.10 #!/usr/bin/python # -*- coding:utf-8 -*-import osimport sys,reimport subprocess #定义正则,排除 阅读全文
posted @ 2020-09-02 11:30
chengxuyonghu
阅读(199)
评论(0)
推荐(0)
浙公网安备 33010602011771号