Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Python 3.x 将低级模块 'thread' 重命名为 '_thread' - 我在文档中不明白为什么。有人知道吗?
低级模块被非正式弃用已经很长时间了thread,我们强烈鼓励所有用户改用高级threading模块;现在有了在 Python 3 中引入向后不兼容的能力,我们已经做出了弃用,而不仅仅是“非正式的”,仅此而已!-)
thread
threading
看起来线程模块在 3.x 中已经过时,取而代之的是线程模块。参见PEP 3108。
我认为旧thread模块已被弃用,有利于更高级别的threading模块。