Commit 97f0ce22 by BellCodeEditor

save project

parent 3f7893db
Showing with 1 additions and 1 deletions
......@@ -7,7 +7,7 @@ class Hero:
def up():
self.level=self.level+1
self.hp=self.hp+50
self.attack=self.attack=4
self.attack=self.attack+4
houyi=Hero("后羿",300,20)
print("后羿hp:",houyi.hp)
up()
......
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