Python 3.x 将低级模块“thread”重命名为“_thread”——我在文档中不明白为什么。有人知道吗?
最佳答案
自从低级 thread
模块被非正式弃用以来已经有很长时间了,我们衷心鼓励所有用户使用更高级别的 threading
模块;现在有了在 Python 3 中引入向后不兼容性的能力,我们已经弃用了,而不仅仅是“非正式的”,仅此而已!-)
关于python - 为什么 'thread' 模块在 Python 3.x 中重命名为 '_thread'?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1141047/