python 「常量」

python有常量??? 舉個黎姿: class A(object):     def __init__(self, age):         self.__age = 666     @property     def AGE(self):         return self.__age a = A(100) print(a.AGE)  # 這時的 a.AGE 就可以看做一個常量 雖然從某
相關文章
相關標籤/搜索