#coding:utf8
class Water():
def __init__(self):
self.temperator=15
self.level="凉水"
def hotup(self):
self.temperator+=10
self.setlevel()
def setlevel(self):
if str(self.temperator<=10)and str(self.temperator>=0) :
self.level ="冰水"
elif (self.temperator<=20) and (self.temperator>10) :
self.level ="凉水"
else:
self.level ="好水"
def printl(self):
print self.level,str(self.temperator)
w=Water()
w.printl()