Commit 9f00d72e by BellCodeEditor

save project

parent def483a7
Showing with 3 additions and 2 deletions
......@@ -6,10 +6,11 @@ class Hero():
self.attaack=attaack
yase=Hero("垭瑟",999999,990)
hoyi=Hero("后羿",999000,999)
print("垭瑟的生命值为",yase.hp)
print("后羿的生命值为",hoyi.hp)
def upgrade():
yase.level+=1
yase.name+=90
yase.hp+=100
upgrade()
print("垭瑟的生命值为",yase.hp)
print("后羿的生命值为",hoyi.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