摘要: 属性(property)是一种特殊的特性(attribute)。 如下,我们定义了一个圆圈类(circle),圆圈嘛,自然就有直径(diameter)和半径(radius),我们可以设置他们为特性(attribute)。 class Circle(object): def __init__(self 阅读全文
posted @ 2020-07-28 04:20 Sincere_Ye 阅读(1863) 评论(0) 推荐(0) 编辑