线程学习:(步骤)
import threading
threads=[] /创建数组
t1 = threading.Thread(group=None,target=None,name=None,args=(),kwargs={})
threads.append(t1)
for循环便利数组
for t in threads:
t.setDaemon(True) / 声明守护线程
t.start() /开始线程活动
注:父线程结束,子线程直接终止
添加 join()方法 用于等待子线程结束