守护线程是守护主线程 t.setDaemon(True),调用函数里面存在等待时间时,只要设置了守护线程,函数中等待时间下面的代码都不会再执行 转载于:https://www.cnblogs.com/mihoutao/p/10968803.html