Python的类及单例实现

一、使用@property

  @property 的作用 将一个get方法变成一个属性

  class 

 

原文地址:https://www.cnblogs.com/jiuyang/p/9561097.html