摘要: 在顶层抽象上,python对象是属性、方法、作用域的集合。 在底层实现上,python对象不过就是对c语言struct结构的封装。 一个python的int类型可以写成这样: class python_int(object): def __init__ (self, value): self.val 阅读全文
posted @ 2020-09-24 08:49 lincappu 阅读(267) 评论(0) 推荐(1) 编辑