Commit 557920c1 by BellCodeEditor

save project

parent 9f46f877
Showing with 8 additions and 6 deletions
......@@ -2,15 +2,17 @@ def new_input():
total = []
while True:
try:
unit=int(unit=input("请输入:"))
unit=unit=input("请输入:")
unit=int(unit)
if unit== 'q':
break
total.append(unit)
print('保存好了')
except:
print('要输入整型哦~')
print('程序结束,你个***')
else:
print('已经保存了哦~')
print('程序结束')
else:
total.append(unit)
return total
new_input()
\ No newline at end of file
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