Commit 1463013d by BellCodeEditor

save project

parent 3ac8013a
Showing with 3 additions and 1 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):
......@@ -14,3 +14,4 @@ class Player(Hero):
self.attack = 50
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