2024-09-29 21:55:43 发布
网友
嗨,我正在使用psutil我想访问发送的字节数
net = psutil.net_io_counters(pernic=True)
输出=>
当我这样做时:
sent = psutil.net_io_counters().bytes_sent() receved = psutil.net_io_counters().bytes_recv()
我有个错误
TypeError: 'int' object is not callable
怎么了?在
psutil.net_io_counters(pernic=True)返回包含所有接口统计信息的dict。在
psutil.net_io_counters(pernic=True)
为了获得单独的结果,您需要执行以下操作:
psutil.net_io_counters(pernic=True)
返回包含所有接口统计信息的dict。在为了获得单独的结果,您需要执行以下操作:
^{1}$相关问题 更多 >
编程相关推荐