摘要: 1、使用psutil库计算实时上下传的网速 # coding:utf-8 import psutil import time def getNet(): sent_before = psutil.net_io_counters().bytes_sent # 已发送的流量 recv_before = 阅读全文
posted @ 2022-07-23 12:32 hiccup_lh 阅读(113) 评论(0) 推荐(0) 编辑