Commit 5832f3ed by BellCodeEditor

auto save

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