📜  私有实例属性python代码示例

📅  最后修改于: 2022-03-11 14:45:47.911000             🧑  作者: Mango

代码示例1
# Square Class: Define a Square with private instance
class Square:
    def __init__(self, size=0):
      # initialise variables
      self.__size = size