Commit 9549864d by BellCodeEditor

save project

parent 145d6dc2
Showing with 4 additions and 3 deletions
...@@ -6,9 +6,9 @@ class Hero: ...@@ -6,9 +6,9 @@ class Hero:
self.attack=attack self.attack=attack
Lixin=Hero('Lixin',3600,190) Lixin=Hero('Lixin',3600,190)
def Xuzimai(): def Xuzimai():
Lixin.hp=hp+1000 Lixin.hp+=1000
Lixin.level=level+1 Lixin.level+=1
Lixin.attack=attack+200 Lixin.attack+=200
Xuzimai() Xuzimai()
Xuzimai() Xuzimai()
print(Lixin.hp) print(Lixin.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