_thread 及 threading使用問題
2020/03/03 06:11 下午
Python網路爬蟲討論版
Chi-Kang Su
觀看數:4
回答數:1
收藏數:0
我在查詢多線程時,有發現文章表示_thread已經廢棄,想確認是否新版 python 檔案已經不會繼續更新了,謝謝!
https://www.runoob.com/python3/python3-multithreading.html
Python3 线程中常用的两个模块为:
- _thread
- threading(推荐使用)
thread 模块已被废弃。用户可以使用 threading 模块代替。所以,在 Python3 中不能再使用"thread" 模块。为了兼容性,Python3 将 thread 重命名为 "_thread"。