This is what I encountered when trying to import thread package:
>>> import thread Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packag es/thread.py", line 3 print('This is ultran00b's package - thread')
I tried uninstalling and install again but it won't work.
python 3中不推荐使用线程模块。
import threading
You are trying to import the thread class ?
Use :
from threading import Thread
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.