2013年11月27日
摘要: 一、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... 阅读全文
posted @ 2013-11-27 16:38 perel 阅读(207) 评论(0) 推荐(0) 编辑
摘要: 一、import logginglogging.basicConfig(filename='...',level=logging.DEBUG)#filename Specifies that a FileHandler be created, using the specified filenam... 阅读全文
posted @ 2013-11-27 11:12 perel 阅读(279) 评论(0) 推荐(0) 编辑