Commit aaecce32 by BellCodeEditor

save project

parent 4d45c1ee
Showing with 12 additions and 8 deletions
total = []
while True:
def new_input():
total = []
while True:
unit= int(input("请输入:"))
if unit== 'q':
break
else:
try:
unit= input("请输入:")
unit = innt(unit)
except:
print("重输")
else:
if unit== 'q':
break
else:
total.append(unit)
print(total)
\ No newline at end of file
return total
prit(new_input())
\ 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