class MyClass(): def __init__(self): self.__superprivate = "Hello" self.__semiprivate = ", world!" mc=MyClass() print(mc._MyClass__semiprivate)
原文地址:https://www.cnblogs.com/c-x-a/p/8849714.html
时间: 2024-10-12 21:17:49
class MyClass(): def __init__(self): self.__superprivate = "Hello" self.__semiprivate = ", world!" mc=MyClass() print(mc._MyClass__semiprivate)
原文地址:https://www.cnblogs.com/c-x-a/p/8849714.html