Commit 6295fdde by BellCodeEditor

auto save

parent c962c3a1
Showing with 6 additions and 0 deletions
...@@ -2,9 +2,15 @@ def ac(): ...@@ -2,9 +2,15 @@ def ac():
total = [] total = []
while True: while True:
unit= input("请输入:") unit= input("请输入:")
try:
unit = int(unit)
except:
if unit== 'q': if unit== 'q':
break break
else: else:
print("xxxx")
continue
else:
total.append(unit) total.append(unit)
print(total) print(total)
ac() ac()
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