Commit 595c608f by BellCodeEditor

save project

parent 9958c1f8
Showing with 3 additions and 2 deletions
......@@ -4,10 +4,11 @@ class Hero:
self.name=name
self.hp=hp
self.attar=attar
yase=Hero("亚瑟",300,100)
yase=Hero("亚瑟",300,20)
def updent():
yase.level=yase.level+1
yase.hp=yase.hp+1
yase.hp=yase.hp+40
yase.attar=yase.attar+1
updent()
updent()
print(yase.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