Commit 27262e5c by BellCodeEditor

save project

parent 789d9de0
Showing with 4 additions and 3 deletions
...@@ -11,6 +11,8 @@ class Hero: ...@@ -11,6 +11,8 @@ class Hero:
self.attack = self.attack + 4 self.attack = self.attack + 4
yase = Hero("去",300,20) yase = Hero("去",300,20)
houyi = Hero("我",240,23) yese.upgrade()
print("请为:",yase.level)
print("去为:",yase.hp) print("去为:",yase.hp)
print("我为:",houyi.hp) print("其为:",yase.attack)
\ 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