在python中,当start一个线程之后。无论该线程是否结束,再次start该线程就会报一个Thread already started的错误。解决办法就是,调用run()函数,再次运行该线程。
python Thread already started 错误解决
原创
©著作权归作者所有:来自51CTO博客作者魂之哀歌的原创作品,请联系作者获取转载授权,否则将追究法律责任
上一篇:mysql中count的用法
下一篇:python模块之time
提问和评论都可以,用心的回复会被更多人看到
评论
发布评论
相关文章
-
兔子--android开发中 java.lang.IllegalThreadStateException: Thread already started
原因:thread的没有停止,就又去启动这个线程了,解决办法:我只列出了关键代码: btnStart.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { new Thread
java.lang.IllegalThr Thread already start thread不能停止处理办法 ide i++ -
Tomcat错误解决
解决Tomcat使用中的错误
Tomcat 错误 -
oracle 错误解决
昨天好好的oracle数据库,今天启动就报错,在网上找了一些办法,但没有成功,都想重装oracle数据库软件,后来通过网上通过一下办法解决
oracle数据库 数据库 Database