Commit 568de8fd by BellCodeEditor

save project

parent 62a48bc9
Showing with 4 additions and 4 deletions
......@@ -5,10 +5,10 @@ class Hero:
self.hp=hp
self.attack=attack
def upgrade():
yase.level=yase.level+1
yase.hp=yase.hp+50
yase.attack=yase.attack+4
def upgrade(seif):
seif.level=seif.level+1
seif.hp=seif.hp+50
seif.attack=seif.attack+4
yase=Hero("垭瑟",300,20)
print("垭瑟的初始血量值为:"yase.hp)
......
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