我想在线程中运行一些定时器,但是它显示错误TypeError: start() argument after * must be an iterable, not int
,我该如何解决?
while 1:
try:
_thread.start_new_thread(self.timer0.start,100)
_thread.start_new_thread(self.timer1.start,150)
_thread.start_new_thread(self.timer2.start,200)
_thread.start_new_thread(self.timer3.start,250)
_thread.start_new_thread(self.timer4.start,300)
break
except:
print ("Error: unable to start thread")
break