Commit dec53052 by BellCodeEditor

save project

parent e12cd52f
Showing with 9 additions and 3 deletions
......@@ -5,6 +5,12 @@ class Hero:
self.hp=hp
self.attack=attack
yase=Hero("亚瑟",300,20)
houyi=Hero("后羿",250,23)
#houyi=Hero("后羿",250,23)
def upgrade():
yase.level=yase.level+1
yase.hp+=40
yase.attack+=4
upgrade()
print(yase.level)
print(yase.hp)
print(houyi.attack)
\ No newline at end of file
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