Commit 3d5eff8c by BellCodeEditor

save project

parent 99982cfe
Showing with 9 additions and 4 deletions
......@@ -4,7 +4,12 @@ class hear:
self.name=name
self.hp=hp
self.attack=attack
def upgrade()
yase.level=yase.level+1
yase.hp=yase.hp+276
yase.attack=yase.attack+2
yase=hear("YASE",3662,164)
houyi=hear("houyi",3182,175)
print("yase的血量:",yase.hp)
print("houyi的血量",houyi.hp)
\ No newline at end of file
upgrade()
upgrade()
print("生了两次及,血量是:",yase.hp
\ No newline at end of file
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