发布时间:2019-09-06 08:59:50编辑:auto阅读(2841)
使用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——定义数组
49360
48552
39252
36336
30750
27559
26558
21376
21233
19580
220°
457°
444°
542°
888°
610°
1287°
1405°
1215°
1204°