摘要:
用类的方式创建线程 自创建类 import threadingimport timeclass MyThread(threading.Thread):#自建MyThread类继承threading.Thread类 def __init__(self, num): #init方法用来拿参数,拿到实例变 阅读全文
posted @ 2019-07-26 13:59
单爆手
阅读(1036)
评论(0)
推荐(0)
|
摘要:
用类的方式创建线程 自创建类 import threadingimport timeclass MyThread(threading.Thread):#自建MyThread类继承threading.Thread类 def __init__(self, num): #init方法用来拿参数,拿到实例变 阅读全文
posted @ 2019-07-26 13:59
单爆手
阅读(1036)
评论(0)
推荐(0)
|