hany-postq473111315
安装

pip install speedtest-cli

我的是 
Successfully installed speedtest-cli-2.1.3

import speedtest、

# 创建测试对象

test = speedtest.Speedtest()

down = test.download()

upload = test.upload()

print(f"上传速度:{round(upload/(1024 * 1024),2)} Mbps")
print(f"下载速度:{round(down/(1024 * 1024),2)} Mbps")


 

分类:

技术点:

相关文章:

  • 2021-11-17
  • 2021-04-03
  • 2022-02-09
  • 2022-01-07
  • 2021-06-28
  • 2022-01-14
  • 2021-11-02
猜你喜欢
  • 2021-12-20
  • 2021-06-15
  • 2021-12-29
  • 2022-02-15
  • 2021-11-12
  • 2021-05-13
  • 2021-12-10
相关资源
相似解决方案