Commit a4e2a2a4 by BellCodeEditor

save project

parent ec72c60d
Showing with 15 additions and 6 deletions
......@@ -5,8 +5,17 @@ class Hero:
self.hp=hp
self.attack=attack
yase=Hero('yase',300,20)
houyi=Hero('houyi',250,23)
Kai=Hero('Kai',5600,199)
print(yase.attack)
print(houyi.attack)
print(Kai.attack)
\ No newline at end of file
# houyi=Hero('houyi',250,23)
# Kai=Hero('Kai',5600,199)
# print(yase.attack)
# print(houyi.attack)
# print(Kai.attack)
def abc():
yase.level = yase.level+1
yase.hp = yase.hp+50
yase.attack = yase.attack+5
abc()
abc()
print(yase.level)
print(yase.hp)
print(yase.attack)
\ 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