Commit f686f827 by BellCodeEditor

save project

parent 30d3f5b8
Showing with 1 additions and 4 deletions
......@@ -7,13 +7,10 @@ class Hero():
def upgrade(self):
self.level=self.level+1
self.hp=self.hp+50
self.hp=self.attack+4
self.attack=self.attack+4
yase=Hero("亚瑟",300,20)
houyi=Hero("后羿",250,23)
yase.hpupgrade()
yase.upgrade()
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