Commit fea2e620 by BellCodeEditor

save project

parent b9ccbcb5
Showing with 6 additions and 0 deletions
......@@ -27,4 +27,10 @@ class Hero:
yase=Hero('垭瑟',300,20)
houyi=Hero('后羿',250,23)
Hero.combat(yase,houyi)
class player(Hero):
def __init__(self,name):
super().__init__(name)
self.hp=200
self.attack=50
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