Commit 19afa5ff by BellCodeEditor

save project

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