阅读背景:

如何在python中跨线程共享全局变量?

来源:互联网 

I want to end a loop running in a separate thread using a global variable. but this code does not seem to stop the thread in loop. I expect the program not to print any more '.' after 2 seconds, but it still runs indefinitely.I want to end a loop running in a separate thre




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: