Commit 09030982 by BellCodeEditor

save project

parent 7d2d0c7c
Showing with 5 additions and 0 deletions
...@@ -19,6 +19,11 @@ class Hero(object): ...@@ -19,6 +19,11 @@ class Hero(object):
info3="阵亡,结束" info3="阵亡,结束"
info=info1+info2+info3 info=info1+info2+info3
print(info) print(info)
class Player(Hero):
def __init__(self,name):
super().__init__(self,name)
self.hp=300
self.attack=400000000000000000
......
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