Commit 39a23c3a by BellCodeEditor

save project

parent adb86372
Showing with 5 additions and 3 deletions
......@@ -5,11 +5,12 @@ def new_input():
unit= input("请输入:")
unit=int(unit)
except:
print('转换为整数')
if unit == 'q':
break
return total
else:
print('转换为整数')
else:
total.append(unit)
total.append(unit)
new_input()
print(total)
\ 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