Commit a0cac6f9 by BellCodeEditor

save project

parent 69477e52
Showing with 6 additions and 2 deletions
......@@ -12,4 +12,8 @@ class hero:
yase =hero("亚瑟",300,20)
houyi =hero("后羿",240,23)
print("yase的血量值为:"yase.hp)
houyi("houyi的血量值为:"houyi.hp)
\ No newline at end of file
print("houyi的血量值为:"houyi.hp)
yase.upgrade()
houyi.upgrade()
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