Commit 56080121 by BellCodeEditor

save project

parent 886b6657
Showing with 4 additions and 7 deletions
......@@ -11,9 +11,6 @@ class Hero:
houyi=Hero('houyi',250,30)
houyi.upgarde()
houyi.upgarde()
print(houyi.level)
#后羿的等级
print(houyi.hp)
#后羿的血量
print(houyi.attack)
#后羿的攻击力
\ No newline at end of file
print("后羿的等级是:",houyi.level,"级")
print("后羿的血量是:",houyi.hp)
print("后羿的攻击力是:",houyi.attack)
\ 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