Commit aa308d13 by BellCodeEditor

save project

parent 1a378230
Showing with 14 additions and 5 deletions
class Hero: class Hero:
...@@ -19,6 +19,15 @@ class Hero: ...@@ -19,6 +19,15 @@ class Hero:
print(info) print(info)
exit() exit()
houyi = Hero("后羿") #houyi = Hero("后羿")
yase = Hero("yase") #yase = Hero("yase")
yase.combat(houyi) #yase.combat(houyi)
\ No newline at end of file
class player(Hero):
def.__init__(self,name)
super()__init__(name)
self.hp = 200
self.attack = 50
\ 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