Commit 05093808 by BellCodeEditor

save project

parent 6e3883d1
Showing with 4 additions and 4 deletions
...@@ -10,10 +10,10 @@ ludan = Hero("卤蛋",10000,9999999999999999999) ...@@ -10,10 +10,10 @@ ludan = Hero("卤蛋",10000,9999999999999999999)
print("耀的血量值为",yao.hp) print("耀的血量值为",yao.hp)
print("卤蛋的血量值为",ludan.hp) print("卤蛋的血量值为",ludan.hp)
def upgrade(): def upgrade(self):
yase.level = yase.level+1 self.level = yase.level+1
yase.hp = yase.hp+1 self.hp = yase.hp+1
yase.attack = yase.attack+1 self.attack = yase.attack+1
yase = Hero("耀",1000000,99999999999) yase = Hero("耀",1000000,99999999999)
print("耀的血量值为:",yao.hp) print("耀的血量值为:",yao.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