Commit 38de7b9f by BellCodeEditor

save project

parent 5c3b51be
Showing with 2 additions and 0 deletions
...@@ -10,4 +10,5 @@ class Hero: ...@@ -10,4 +10,5 @@ class Hero:
self.attack = self.attack+20 self.attack = self.attack+20
yase = Hero("亚瑟",300,50) yase = Hero("亚瑟",300,50)
print(yase.hp) print(yase.hp)
houyi.upgrade()
print(yase.hp) print(yase.hp)
\ 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