Commit 16b02ee7 by BellCodeEditor

save project

parent c53059d6
Showing with 6 additions and 5 deletions
......@@ -6,11 +6,12 @@ def new_input():
break
else:
try:
unit= int(input("请输入:"))
unit= int(unit)
except:
print("请输入整数")
if unit== 'q':
break
else:
total.append(unit)
print(total)
\ No newline at end of file
finally:
print("======================")
return 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