我在 Android 上的 QPython 上安装了这个模块 PySpeedTestenter code here
并尝试运行以下代码
import pyspeedtest
st = pyspeedtest.SpeedTest()
ping = st.ping()
download = st.download()
upload = st.upload()
print('ping: ' + str(ping))
print('download: ' + str(download))
print('upload: ' + str(upload))
which returns
ping: 20.457208156585693
download: 79367128.02705236
upload: 8458681.882858781
上面的代码似乎有效。我从这个链接得到
https://pypi.org/project/pyspeedtest/
有人能帮帮我吗。