Commit 59d7485d by BellCodeEditor

save project

parent d837bdbf
Showing with 7 additions and 1 deletions
...@@ -19,7 +19,12 @@ class Hero(object): ...@@ -19,7 +19,12 @@ class Hero(object):
info = info1+inof2+info3 info = info1+inof2+info3
print(info) print(info)
exit() exit()
class Player(Hero):
def __init__(self,name)
super().__init__(name)
self.hp = 200
self.attack = 50
pass
yase = Hero("漆世强") yase = Hero("漆世强")
houyi= Hero("三木") houyi= Hero("三木")
yase.combat(houyi) yase.combat(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