Commit 1463013d by BellCodeEditor

save project

parent 3ac8013a
Showing with 4 additions and 3 deletions
...@@ -5,7 +5,7 @@ class Hero: ...@@ -5,7 +5,7 @@ class Hero:
self.hp = 250 self.hp = 250
self.attack = 40 self.attack = 40
def combat(self,enemy) def combat(self,enemy):
class Player(Hero): class Player(Hero):
def __init__(self,name): def __init__(self,name):
...@@ -13,4 +13,5 @@ class Player(Hero): ...@@ -13,4 +13,5 @@ class Player(Hero):
self.hp = 200 self.hp = 200
self.attack = 50 self.attack = 50
houyi = player("后羿") houyi = player("后羿")
\ No newline at end of file print()
\ 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