Commit 2104ac1e by BellCodeEditor

save project

parent c6ce2153
Showing with 14 additions and 13 deletions
try:
total = [] total = []
def A(): def A():
while True: while True:
unit= input("请输入:") try:
if unit == 'q': unit= int(input("请输入:"))
except:
print('请输入数字')
else:
if unit == 1:
break break
else: else:
total.append(int(unit)) total.append(unit)
except: A()
print("jkkpo") print(total)
else: \ No newline at end of file
A()
print(total)
\ 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