Commit 87ba04b3 by BellCodeEditor

save project

parent da764def
Showing with 1 additions and 1 deletions
......@@ -8,7 +8,7 @@ class Hero:
def upgrade():
laoshi.level = laoshi.level + 1
laoshi.hp = laoshi.hp + 50
laoshi.attack laoshi.attack + 4
laoshi.attack = laoshi.attack + 4
laoshi = Hero('老师',114514,100)
print('老师的初始血量值为:',laoshi.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