不是自带线程模块吗,为什么我引用的时候,它跟我说没有这个模块
你的python版本是2还是3?
建议使用以下方式导入:
import sys
if sys.version_info.major == 2: # Python 2
import thread
else: # Python 3
import _thread as thread
如果是python3最新版本,建议使用threading模块,学习这个模块
import threading
觉得本回答有帮助请记得采纳哦!