12 2018 档案

摘要:import threading # 导入线程模块 import time def demo1(): for temp in range(5): # 创建整数列表,循环5次 print("-----demo1---%d---" % temp) time.sleep(1) # 如果创建Thread时执行的函数,运行结束那么意味着 这个子线程... 阅读全文
posted @ 2018-12-30 12:31 永远1688 阅读(261) 评论(0) 推荐(0) 编辑