11 2012 档案
摘要:importthreadingimporttimeclassTest(threading.Thread):#继承threading.Threaddef__init___(self):super(Test,self).__init__()defrun(self):#设置线程方法threadname=...
阅读全文
摘要:将数据以文件的形式保存importshelvedefcreate():try:db=shelve.open('db.dat','c')db['name']='jam'db['home']='ar'finally:db.close()defload():db=shelve.open('db.dat'...
阅读全文