Commit 30eff477 by BellCodeEditor

save project

parent 39c24413
Showing with 6 additions and 0 deletions
......@@ -8,6 +8,12 @@ class Hero(object):
def combat(): # 攻击
class playrt(Hero)
def__init__(self,name,hero_type)
super().__init__(name)
self.hp=200
self.attack=50
self.hero_type=hero_type
yase = Hero("垭瑟")
houyi= Hero("后羿")
......
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