Commit 5832f3ed by BellCodeEditor

auto save

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