Commit cab3df75 by BellCodeEditor

save project

parent 3d6f186f
Showing with 14 additions and 0 deletions
......@@ -4,3 +4,17 @@ class Hero:
self.name=name
self.hp=hp
self.attack=attack
def upgrade(self):
self.level=level+1
self.hp=hp+50
self.attack=attack+5
yase=Hero("亚瑟",200,20)
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