Commit 12d352e0 by BellCodeEditor

save project

parent d9c7a923
Showing with 10 additions and 7 deletions
...@@ -19,13 +19,16 @@ class Hero(object): ...@@ -19,13 +19,16 @@ class Hero(object):
info = info1 + info2 + info4 info = info1 + info2 + info4
print(info) print(info)
class player(Hero):
super().__init__():
self.level = 1
self.hp = 200
self.attack = 50
self.name = name
yase = Hero("垭瑟") yase = Hero("垭瑟")
houyi= Hero("后羿") houyi= Hero("后羿")
yase.combat(houyi)
yase.combat(houyi)
yase.combat(houyi)
yase.combat(houyi)
yase.combat(houyi)
yase.combat(houyi)
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