摘要:
一、thread(不推荐)1 import thread2 def foo(a):3 print a4 5 thread.start_new_thread(foo,(a))二、threading1 import threading2 class MyThread(threading.Thread):3 # def __init__(self,a):4 # threading.Thread.__init__(self[,name=xxx])5 # self.a=a6 def run(self):7 pass8 thr=MyThre... 阅读全文
摘要:
一、import logginglogging.basicConfig(filename='...',level=logging.DEBUG)#filename Specifies that a FileHandler be created, using the specified filenam... 阅读全文