Commit 6aced85d by BellCodeEditor

auto save

parent f84fbdf7
Showing with 8 additions and 4 deletions
...@@ -13,9 +13,14 @@ try: ...@@ -13,9 +13,14 @@ try:
total = [] total = []
while True: while True:
unit= int(input("请输入:")) unit= int(input("请输入:"))
if unit < 10:
break
except: except:
print("输入数字啊!!") print("输入数字啊!!")
else: else:
if unit == 0: # if unit == 0:
print(total) # print("结束")
total.append(unit) # total.append(unit)
\ No newline at end of file print(11111)
print(111)
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