Commit cce8ac6e by BellCodeEditor

save project

parent a0cac6f9
Showing with 5 additions and 5 deletions
......@@ -11,9 +11,9 @@ class hero:
yase =hero("亚瑟",300,20)
houyi =hero("后羿",240,23)
print("yase的血量值为:"yase.hp)
print("houyi的血量值为:"houyi.hp)
print("yase的血量值为:",yase.hp)
print("houyi的血量值为:",houyi.hp)
yase.upgrade()
houyi.upgrade()
print("yase的升级血量值为:"yase.hp)
print("houyi的升级血量值为:"houyi.hp)
\ No newline at end of file
print("yase的升级血量值为:",yase.hp)
print("houyi的升级血量值为:",houyi.hp)
\ 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