Commit 477096d8 by BellCodeEditor

save project

parent d38d4de4
Showing with 3 additions and 3 deletions
......@@ -5,9 +5,9 @@ class Hero:
self.hp=hp
self.attack=attack
yase=Hero("垭瑟",300,20)
houyi=Hero("后羿",250,23)
print("垭瑟的血量值为",yase.hp)
print("后羿的血量值为",yase.hp)
#houyi=Hero("后羿",250,23)
#print("垭瑟的血量值为",yase.hp)
#print("后羿的攻击力为",houyi.attack)
def upgrade():
yase.level=yase.level+1
yase.hp=yase.hp=50
......
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