发布时间:2013-12-19 21:58:21
import sysimport wxclass InsertFrame(wx.Frame): def __init__(self,parent,id): wx.Frame.__init__(self,parent,id,"Frame With Button",size=(300,100)) panel = wx.Panel(self) .........【阅读全文】
发布时间:2013-12-19 21:30:27
import wximport sysclass Frame(wx.Frame): """Frame class that displays an image""" def __init__(self,parent,id,title): print "Frame __init__" wx.Frame.__init__(self,parent,.........【阅读全文】
发布时间:2013-12-19 14:43:54
import timefrom threading import Thread,Condition,currentThreadclass Goods: def __init__(self): self.count=0 def produce(self,num=1): &nb.........【阅读全文】
发布时间:2013-12-19 11:40:53
import threadingimport timeclass Counter: def __init__(self): self.value=0 def increment(self): self.value=self.value+1 &.........【阅读全文】
发布时间:2013-12-19 11:01:23
#输入流def FileInputStream(filename): try: f = open(filename) for line in f:  .........【阅读全文】