Commit 62750c89 by BellCodeEditor

save project

parent 5f213cdd
Showing with 2 additions and 1 deletions
...@@ -9,7 +9,7 @@ class Hero: ...@@ -9,7 +9,7 @@ class Hero:
self.hp = yase.hp + 100 self.hp = yase.hp + 100
self.attack = yase.attack + 5 self.attack = yase.attack + 5
yase = Hero("亚瑟",200,25) yase = Hero("亚瑟",200,25)
yase.updeta(yase) yase.updeta()
print("等级为",yase.level) print("等级为",yase.level)
print("血量",yase.hp) print("血量",yase.hp)
print("攻击力",yase.attack) 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