ImportError: No module named 'thread'

site-packages文件夹下,新建一个文件“thread.py”,粘贴以下代码:

from _thread import *
__all__ = ("error", "LockType", "start_new_thread", "interrupt_main", "exit", "allocate_lock", "get_ident", "stack_size", "acquire", "release", "locked")

猜你喜欢

转载自blog.csdn.net/weixin_39528941/article/details/84428714