Commit ace42625 by BellCodeEditor

save project

parent 3ec827f2
Showing with 3 additions and 3 deletions
...@@ -4,6 +4,6 @@ class Hero: ...@@ -4,6 +4,6 @@ class Hero:
self.hp = hp self.hp = hp
self.name = name self.name = name
self.attack = attack self.attack = attack
yese =Hero("亚瑟",300,20) yase =Hero("亚瑟",300,20)
houyi=hero("后羿",250,23) houyi=Hero("后羿",250,23)
print(yese.hp) print(yase.hp)
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