GIL(Global Interpreter Lock)全局解释器锁使得python的单线程串行,伪装成了多线程的并行!想要真正的进行并行计算,我们就得考虑多进程! 参考链接: https://zhuanlan.zhihu.com/p/76343641https://zhuanlan.zhihu.com/p/77674796https://zhuanlan.zhihu.com/p/20953544