Commit 56080121 by BellCodeEditor

save project

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