Commit 87326e87 by BellCodeEditor

save project

parent e531a2b4
Showing with 14 additions and 11 deletions
def new_input():
total = []
while True:
fie = input('请输入:')
if fie=="q":
break
else:
total.append(fie)
print(total)
new_input()
\ No newline at end of file
class Hero():
def __init__(self,name):
self.level=1
self.hp=250
self.attack=40
self.name=name
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