Commit 6f34fe20 by BellCodeEditor

save project

parent 70850cf8
Showing with 13 additions and 0 deletions
class Teacher:
def __init__(self,name,hp,attack,tall):
self.level=1
self.name=name
self.hp=hp
self.attack=attack
self.tall=tall
xiaoliu=Teacher('xiaoliu',10000,2000,165)
laoyu=Teacher('laoyu',999,80,170)
daxingxing=Teacher('daxingxing',1000,0.001,160)
duangongchang=Teacher('duangongchang',9090,5,0.0000000001)
print(laoyu.hp)
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment