阅读背景:

在一个实例中选择属性的最简单,最简洁的方法是readonly?

来源:互联网 

In Python, I want to make selected instance attributes of a class be readonly to code outside of the class. I want there to be no way outside code can alter the attribute, except indirectly by invoking methods on the instance. I want the syntax to be concise. What is the best way? (I give my current best answer below...) instance att




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: