<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Fri, Jul 25, 2014 at 12:45 AM, 水静流深 <span dir="ltr"><<a href="mailto:1248283536@qq.com" target="_blank">1248283536@qq.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<img src="cid:08221DA3@7B7BB14B.140BD253.PNG"><br>never quit from the thread ,why?<br></blockquote><div><br></div><div>I am going to guess that you can actually run code in the interpreter here. When printing from threads, the prompt will end up in the wrong place as the prompt is printed in the main thread. Similarly, there is a (decent) chance that the prints will be done out-of-order (multiple "<Thread..." lines or URLs next to each other or on the same line). The odds that such behavior will occur will increase as the work become more complex and more threads are created. All of this can be resolved by manually using the locking provided in the threading module.</div>
</div><br></div></div>