Commit 94750762 by BellCodeEditor

save project

parent f1a2cda5
Showing with 5 additions and 5 deletions
...@@ -19,7 +19,8 @@ class Hero(object): ...@@ -19,7 +19,8 @@ class Hero(object):
info = info1+info2+info3 info = info1+info2+info3
print(info) print(info)
exit() exit()
class Player(Hero):
yase = Hero("垭瑟") def __init__(self, name):
houyi= Hero("后羿") super().__init__(name)
yase.combat(houyi) self.hp = 200
\ No newline at end of file self.attack = 50
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