Commit 19afa5ff by BellCodeEditor

save project

parent 4753ee9d
Showing with 17 additions and 6 deletions
def new_input() def n():
total = [] total = []
while True: while True:
unit= input("请输入:") unit= input("请输入:")
try:
if unit== 'q': if unit== 'q':
return total
break break
else: else:
total.append(unit) total.append(unit)
except:
try:
new_input()
except:
print("输入整数奧不写杀了你") print("输入整数奧不写杀了你")
print(total) else:
print(total)
a=n()
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