摘要: # 继承情况下:类属性、实例属性的区别 # """ Person3.count += 1 """ class Person3: # Person类的计数器 count : int = 0 def __init__(self): Person3.count += 1 class Student(Per 阅读全文
posted @ 2025-12-27 18:21 此心安处2022 阅读(5) 评论(0) 推荐(0)