Commit e365d08a by BellCodeEditor

save project

parent 80deca0e
Showing with 2 additions and 1 deletions
...@@ -5,6 +5,6 @@ class Hero: ...@@ -5,6 +5,6 @@ class Hero:
self.hp=hp self.hp=hp
self.attack=attack self.attack=attack
yase=Hero('yase',300,20) yase=Hero('yase',300,20)
houyi=Hero('hy',250,23) houyi=Hero('hy',240,23)
print("垭瑟的血量为:",yase.hp) print("垭瑟的血量为:",yase.hp)
print("后羿的血量为:",houyi.hp) print("后羿的血量为:",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