Commit aaecce32 by BellCodeEditor

save project

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