On Fri, Jul 25, 2014 at 12:45 AM, 水静流深 <1248283...@qq.com> wrote:
> > never quit from the thread ,why? > 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.
08221DA3@7B7BB14B.140BD253.PNG
Description: Binary data
-- https://mail.python.org/mailman/listinfo/python-list