Commit 16b32720 by BellCodeEditor

save project

parent 6eccbeb0
Showing with 3 additions and 2 deletions
...@@ -4,6 +4,6 @@ class Hero: ...@@ -4,6 +4,6 @@ class Hero:
self.hp=help self.hp=help
self.name=name self.name=name
self.attack=attack self.attack=attack
yase=Hero("亚瑟",300,20) yase=Hero("亚瑟",300,200)
houyi=Hero("后裔"24023) houyi=Hero("后裔"240190)
print("亚瑟的血量",yase.hp) print("亚瑟的血量",yase.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