Commit 2482fe0b by BellCodeEditor

save project

parent eec154bf
Showing with 5 additions and 2 deletions
...@@ -5,5 +5,8 @@ class Hero: ...@@ -5,5 +5,8 @@ class Hero:
self.hp=hp self.hp=hp
self.attar=attar self.attar=attar
yase=Hero("亚瑟",300,100) yase=Hero("亚瑟",300,100)
houyi=Hero("后羿",240,150) def undent():
print(yase.name,houyi.name) yase.level=yase.level+1
yase.hp=yase.hp+1
yase.attar=yase.attar+1
undent()
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