Commit ba40607e by BellCodeEditor

save project

parent 14590f28
Showing with 7 additions and 15 deletions
def new_input():
try:
total = []
while True:
unit= int(input("请输入:"))
unit=int(input("请输入:"))
if unit== 'q':
break
else:
total.append(unit)
print(total)
except:
print('要输入整数')
else:
total.append(unit)
new_input()
\ No newline at end of file
new_input()
print(total)
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