Commit a2d0594c by BellCodeEditor

save project

parent 3d6e38fd
Showing with 36 additions and 2 deletions
......@@ -17,7 +17,42 @@ class Hero(object):
info3=enemy.name+"死"
info=info1+info2+info3
print(info)
class Player(Hero):
def __init__(self,name):
super().__init__(name)
self.hp=200
self.attack=50
yase=Hero("亚瑟")
houyi=Hero("后裔")
yase.combat(houyi)
\ No newline at end of file
yase.combat(houyi)
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