python3导入import thread出现“No module named 'thread”问题

时间:2022-07-12 18:36:47

看到多线程的内容时,输入了这样一行命令:import thread。出现这样的错误:ImportError: No module named 'thread'(前面的就不列出来了)。后面发现python3的thread模块改为了_thread.输入:import _thread就能正常使用thread模块中的内容了。