标签: python resources
我在Windows上使用资源模块,即import resource。
import resource
但它会产生错误(ImportError: No module named 'resource') reference link表示它仅适用于UNIX。 那么在Windows上使用的备用功能是什么?
ImportError: No module named 'resource'
答案 0 :(得分:3)
不幸的是,Windows中没有其他选择。但首先你需要决定使用什么资源。例如,对于CPU速度,您可以使用注册表项来设置进程ID限制