Commit bcfc5ef1 by BellCodeEditor

save project

parent 0cbe05a8
Showing with 7 additions and 2 deletions
......@@ -2,9 +2,14 @@ der new_input():
total=[]
while true:
unit=input('请输入(q退出):')
if unit=='q':
if =='q':
briak
else:
total.append(unit)
try:
unit=int(unit)
except:
print("请重输一个数字")
else:
total.append(unit)
print(total)
new_input()
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