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是跨平台的