“线程"对象没有属性“线程" [英] 'threading' object has no attribute 'Thread'

查看:60
本文介绍了“线程"对象没有属性“线程"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在python中导入了线程模块,用于做一些线程工作.但是它说线程模块没有属性线程".有什么问题吗?

I have imported threading module in python for doing some threading stuffs. But it says threading module has no attribute 'Thread'. What is the problem?

推荐答案

检查您是否未命名脚本threading.py

Check that you have not named your script threading.py

这篇关于“线程"对象没有属性“线程"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆