Commit 1463013d by BellCodeEditor

save project

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