import resource #ImportError: No module named 'resource'

resource is a Unix specific package 

resource只有在(类)Unix下才能用

The module psutil provides a cross-platform library for monitoring and managing running processes and system usage (CPU, memory, disks, network, sensors)

有个psutil是跨平台的

posted @ 2018-10-11 09:03  骑着鱼去飞  阅读(2962)  评论(0编辑  收藏  举报

我的QQ:597014772