python查看网站的RTT


import requests

time=0.0

jpserver=['jp1.herejump.com','jp1.herejump.com','jp1.herejump.com']

usserver=['us1.herejump.com','us2.herejump.com','us3.herejump.com','us4.herejump.com','us5.herejump.com']

sgserver=['sg1.herejump.com','sg2.herejump.com']

twserver=['tw1.herejump.com']

hkserver=['uk1.herejump.com']

ukserver=['jp1.herejump.com']

github=['https://github.com',]

def getTime(list):

time=0.0

for i in list:

r = requests.get(i)

time = r.elapsed.total_seconds()+time

return time/4.0

print str(getTime(github))+" s"

优质内容筛选与推荐>>
1、进程与线程的定义、关系及区别
2、nfs网络文件服务
3、python3 excel
4、selenium and win32api
5、java中tcp小样例


长按二维码向我转账

受苹果公司新规定影响,微信 iOS 版的赞赏功能被关闭,可通过二维码转账支持公众号。

    阅读
    好看
    已推荐到看一看
    你的朋友可以在“发现”-“看一看”看到你认为好看的文章。
    已取消,“好看”想法已同步删除
    已推荐到看一看 和朋友分享想法
    最多200字,当前共 发送

    已发送

    朋友将在看一看看到

    确定
    分享你的想法...
    取消

    分享想法到看一看

    确定
    最多200字,当前共

    发送中

    网络异常,请稍后重试

    微信扫一扫
    关注该公众号