Commit 1a7f4702 by BellCodeEditor

save project

parent 81ef3988
Showing with 13 additions and 22 deletions
def new_input(): def new_inout():
total = [] total = []
while True: while True:
try: u=input("请输入:")
a=int(input("请输入:")) if u=="q":
except:
print("请输入数字")
if a== 'q':
break break
else: else:
total.append(a) try:
print(total) a=int(u)
new_input()def new_input(): except:
total = [] print("请输入数字")
while True: else:
try: total.append(a)
a=int(input("请输入:")) return total
except: c=new_inout()
print("请输入数字") print(c)
if a== 'q': \ No newline at end of file
break
else:
total.append(a)
print(total)
new_inp
\ 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