Commit 2174d480 by BellCodeEditor

save project

parent 1458e94c
Showing with 9 additions and 0 deletions
......@@ -13,3 +13,11 @@ yase = Hero("垭瑟")
houyi= Hero("后羿")
yase.combat(houyi)
houyi.combat(yase)
class Player(Hero):
def __init__(self,name):
self.level=1
self.name=name
self.hp=200
self.attack=50
player1=Player("后羿")
\ 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