《Django REST framework 入门到精通》视频课程上线了,全网稀缺资源,深度源码剖析,进阶高手之路!点击链接查看详情


user_image
By  龙love慧2012    On   2019年4月20日 15:47

[root@limtest bin]# python main.py report_data Traceback (most recent call last): File "main.py", line 18, in <module> handler.ArgvHandler(sys.argv) File "/client/core/handler.py", line 15, in __init__ self.parse_args() File "/client/core/handler.py", line 24, in parse_args func() File "/client/core/handler.py", line 58, in report_data asset_data = info.collect() File "/client/core/info_collection.py", line 14, in collect info_data = func() File "/client/core/info_collection.py", line 23, in linux return collect() File "/client/plugins/collect_linux_info.py", line 36, in collect data.update(get_ram_info()) File "/client/plugins/collect_linux_info.py", line 126, in get_ram_info item_ram_size = round(v.split()[0]) TypeError: type str doesn't define __round__ method linux下运行报这个错误,怎么处理