Commit 112b94f8 by BellCodeEditor

save project

parent a0e944d2
Showing with 3 additions and 1 deletions
......@@ -2,7 +2,7 @@ def new_input():
total = []
while True:
try:
unit= input("请输入:")
unit=int (input("请输入:"))
except:
print("请输入整数")
if unit== 'q':
......@@ -10,3 +10,4 @@ def new_input():
else:
total.append(unit)
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