多处理的基本示例Process类在从文件执行时运行,但不从IDLE执行.为什么这样,可以做到吗?
from multiprocessing import Process def f(name): print('hello', name) p = Process(target=f, args=('bob',)) p.start() p.join()
python multiprocessing python-idle
multiprocessing ×1
python ×1
python-idle ×1