Commit 1a7f4702 by BellCodeEditor

save project

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