多线程处理下报错AttributeError: module '__main__' has no attribute '__spec__'

添加语句至 main 下

if __name__ == '__main__': 
  __spec__ = "ModuleSpec(name='builtins', loader=<class '_frozen_importlib.BuiltinImporter'>)"
posted @ 2021-09-29 09:08  小艾衰  阅读(774)  评论(0编辑  收藏  举报