Commit 93896f2d by BellCodeEditor

save project

parent dc70412a
Showing with 19 additions and 0 deletions
def new_input():
total = []
while True:
try:
unit=unit=input("请输入:")
unit=int(unit)
if unit== 'q':
break
total.append(unit)
print('保存好了')
except:
print('要输入整型哦~')
print('程序结束')
else:
total.append(unit)
return total
resrult = new_input()
print(resrult)
\ 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