摘要:
L1 cache reference0.5 nsBranch mispredict5 nsL2 cache reference7 nsMutex lock/unlock100 nsMain memory reference100 nsCompress 1K bytes with Zippy10,000 nsSend 2K bytes over 1 Gbps network20,000 nsRead 1 MB sequentially from memory250,000 nsRound trip within same datacenter500,000 nsDisk seek10,000,0 阅读全文
posted @ 2012-03-22 17:52
大兵八世
阅读(222)
评论(0)
推荐(0)
摘要:
1. propertyclass C(): def SetIt(self): self.a = 1 def GetIt(self): return self.a content = property(SetIt, GetIt)c = C()c.content = 1print c.content # will print 12. idid(1) # this is a number..3. weakrefimport weakrefclass C(): def func(self): passc = C()c.func()p =... 阅读全文
posted @ 2012-03-22 16:38
大兵八世
阅读(657)
评论(0)
推荐(0)
浙公网安备 33010602011771号