Commit 4c928512 by BellCodeEditor

save project

parent 39b56634
Showing with 8 additions and 0 deletions
...@@ -17,6 +17,13 @@ class Hero: ...@@ -17,6 +17,13 @@ class Hero:
info3 = shr.name + '寄了' info3 = shr.name + '寄了'
info=info1+info2+info3 info=info1+info2+info3
print(info) print(info)
class player(Hero):
def __init__(self, name):
super().Hero(name)
self.hp = 3000
self.attack = 500
self.name = name
yase = Hero("垭瑟") yase = Hero("垭瑟")
houyi= Hero("后羿") houyi= Hero("后羿")
yase.ghjk(houyi) yase.ghjk(houyi)
\ 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