Commit 9c51b007 by BellCodeEditor

save project

parent 8b856913
Showing with 2 additions and 2 deletions
......@@ -11,9 +11,9 @@ class Hero:
# print("嫦娥的血量为:",change.hp)
def upgrade(self):
libai.level=libai.level+1
libai.level=libai.level+10
libai.hp=libai.hp+50
libai.attack=libai.attack+4
libai.attack=libai.attack+40
libai = Hero("李白",590,70)
libai.upgrade()
......
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