Commit b8d0c362 by BellCodeEditor

save project

parent 86fa8580
Showing with 8 additions and 13 deletions
def new_input() class Abc():
total = [] def ___init__(self):
while True: self.hp=300
unit= input("请输入:") self.attack=20
try: self.leevel=1
if unit== 'q': nrd=Abc()
break print(c.hp)
else: \ No newline at end of file
total.append(unit)
except:
print("输入整数")
else:
print(total)
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