Commit 87d2902a by BellCodeEditor

save project

parent fc4cd363
Showing with 6 additions and 2 deletions
...@@ -4,10 +4,14 @@ class Hero: ...@@ -4,10 +4,14 @@ class Hero:
self.name=name self.name=name
self.hp=hp self.hp=hp
self.attack=attack self.attack=attack
def HengJing():
yase.level=yase.level+1
yase.hp=yase.hp+50
yase.attack=yase.attack+20
yase=Hero("亚瑟血量为:",200,190) yase=Hero("亚瑟血量为:",200,190)
print(houyi.attack) HengJing()
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