Commit dc1c0f64 by BellCodeEditor

save project

parent 53a1dd0e
Showing with 7 additions and 2 deletions
......@@ -19,4 +19,9 @@ class Hero(object):
yase = Hero("垭瑟")
houyi= Hero("后羿")
yase.combat(houyi)
\ No newline at end of file
yase.combat(houyi)zz
class Player(Hero):
def _init_(self,name,hero_type):
super (Player,self)._init_(name)
self.hp = 200
self
\ 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