摘要:
class diGua(): def __init__(self): self.cooking="生" self.time=0 self.addItem=[] def __str__(self): return "%d分钟地瓜已经%s,添加了:%s"%(self.time,self.cooking, 阅读全文
posted @ 2020-05-24 09:33
名狐1993
阅读(204)
评论(0)
推荐(0)
摘要:
class Sond(): def __sond(self):#私有方法 print(" 正在发短信 ") def sond(self,money):#公有方法 if money>0: self.__sond() else: print("你的余额不足,请充值")em=Sond()em.sond(- 阅读全文
posted @ 2020-05-24 09:31
名狐1993
阅读(204)
评论(0)
推荐(0)
摘要:
class diGuo: def __init__(self):#初始化类 self.cooking="生" self.time=0 def __str__(self):#描述对象 return "%d分钟地瓜已经%s"%(self.time,self.cooking) def cook(self, 阅读全文
posted @ 2020-05-24 09:29
名狐1993
阅读(373)
评论(0)
推荐(0)
摘要:
#coding=utf-8#Version:python3.7.4#Tools:Pycharm 2018.3.5class House(): def __init__(self,newInfo,newArea,newAddr): self.info=newInfo self.area=newArea 阅读全文
posted @ 2020-05-24 09:28
名狐1993
阅读(351)
评论(0)
推荐(0)
浙公网安备 33010602011771号