Commit 7429951b by BellCodeEditor

save project

parent b1548aca
Showing with 4 additions and 1 deletions
...@@ -17,7 +17,10 @@ class Hero(object): ...@@ -17,7 +17,10 @@ class Hero(object):
inf3=enemy.name"阵亡" inf3=enemy.name"阵亡"
info=info1+info2+info3 info=info1+info2+info3
print(info) print(info)
class Player(Hero):
def __init__(self, name):
super().__init__(name)
self.hp=250
......
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