Commit b3337899 by BellCodeEditor

save project

parent 61b9b721
Showing with 9 additions and 2 deletions
...@@ -4,6 +4,13 @@ class Hero: ...@@ -4,6 +4,13 @@ class Hero:
self.hp=hp self.hp=hp
self.st=st self.st=st
self.name=name self.name=name
sb=Hero(15,"卢本伟",99999,999) sb=Hero(1,"卢本伟",99999,999)
def xxs():
sb.lv=sb.lv+1
sb.hp=sb.hp+999
sb.st=sb.st+999
xxs()
xxs()
xxs()
print(sb.lv) print(sb.lv)
print(sb.name) print(sb.hp)
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