Commit 0392693a by BellCodeEditor

save project

parent 13985df4
Showing with 7 additions and 1 deletions
......@@ -5,4 +5,10 @@ class Hero:
self.HP=HP
self.attack=attack
yase=Hero("亚瑟",1,300,20)
print(yase.name)
def upgrade():
yase.level+=1
yase.HP+=50
yase.attack+=4
upgrade()
upgrade()
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