pythonpsutil.net_io\u计数器()访问字节sen

2024-09-29 21:55:43 发布

您现在位置:Python中文网/ 问答频道 /正文

嗨,我正在使用psutil我想访问发送的字节数

net = psutil.net_io_counters(pernic=True)

输出=>

^{pr2}$

当我这样做时:

 sent = psutil.net_io_counters().bytes_sent()
 receved = psutil.net_io_counters().bytes_recv()

我有个错误

TypeError: 'int' object is not callable

怎么了?在


Tags: iogttruenetbytes错误psutilsent

热门问题