摘要: #练习:创建一个线程 from threading import Thread import time def run(a = None, b = None) : print a, b time.sleep(1) t = Thread(target = run, name="wangjing",args = ("this is a", "thread")) #此时线程是新建状态 ... 阅读全文