Commit 9958c1f8 by BellCodeEditor

save project

parent 2482fe0b
Showing with 3 additions and 2 deletions
...@@ -5,8 +5,9 @@ class Hero: ...@@ -5,8 +5,9 @@ class Hero:
self.hp=hp self.hp=hp
self.attar=attar self.attar=attar
yase=Hero("亚瑟",300,100) yase=Hero("亚瑟",300,100)
def undent(): def updent():
yase.level=yase.level+1 yase.level=yase.level+1
yase.hp=yase.hp+1 yase.hp=yase.hp+1
yase.attar=yase.attar+1 yase.attar=yase.attar+1
undent() updent()
updent()
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