发布时间:2019-09-06 08:59:50编辑:auto阅读(3020)
使用python执行系统命令,比如curl
直接上货:
#!/usr/bin/python
# -*- coding: UTF-8 -*-
import os
data = ['www.baidu.com',
'www.csdn.cn']
for item in data:
tmpres = os.popen('curl %s' % item).readlines()
print(tmpres)
print("ok..") 执行结果略了。
上一篇: python crc32两种校验方式
下一篇: Python——定义数组
51345
50807
41400
38199
32691
29584
28416
23300
23257
21589
1666°
2399°
2006°
1941°
2273°
1972°
2677°
4477°
4306°
3069°