摘要:
# class phone: # ''' # 限制,不允许添加属性 # ''' # __slots__=["cpu"] # def call(self,num): # print("用cpu:%s打电话给%s"%(slef.cpu,num)) #print(phone.__dict__) #ipho 阅读全文
摘要:
#coding=utf-8 class Wangjianlin: def __init__(self): self._name="王健林" self.__post="万达董事长" self._money=10000000000 def buy(self,name,price): if price>1 阅读全文