>>> x=webdata(name)
>>> x.start()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: 'webdata' object has no attribute 'start'‍

There is a relation with  jobs.join() method in threading module,your answer is 
wrong.




------------------ 原始邮件 ------------------
发件人: "Sturla Molden";<sturla.mol...@gmail.com>;
发送时间: 2014年7月26日(星期六) 凌晨4:04
收件人: "python-list"<python-list@python.org>; 

主题: Re: problem on multi-threading



"水静流深" <1248283...@qq.com> wrote:

> name=['600000', '000001', '600319', '600531','600661', '600983', '600202', 
> '600149']
> x=webdata(name)
> x.run()‍
> 
> never quit from the thread ,why?

Call .start() instead of .run()

-- 
https://mail.python.org/mailman/listinfo/python-list
-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to