摘要: class Bus(): lock = (1,'222',222) def show(self): print(id(self.lock)) a = Bus() b = Bus() c = Bus() a.show() b.show() c.show() # 排除小整数池的影响 a = (1,'22 阅读全文
posted @ 2021-01-08 15:54 pythoner_wl 阅读(63) 评论(0) 推荐(0)