Commit 5894d29e by BellCodeEditor

save project

parent fab62596
Showing with 4 additions and 4 deletions
...@@ -9,6 +9,6 @@ class Hero: ...@@ -9,6 +9,6 @@ class Hero:
self.level=self.level+1 self.level=self.level+1
self.hp = self.hp + 50 self.hp = self.hp + 50
self.attack = self.attack+4 self.attack = self.attack+4
yase = Hero("榴弹",300,20) liudan = Hero("榴弹",300,20)
yase.upgrade() liudan.upgrade()
print("等级为:",yase.level) print("等级为:",liudan.level)
\ No newline at end of file \ 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