在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")
在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")