Commit b35d012a by BellCodeEditor

save project

parent 7f4bdc7b
Showing with 2 additions and 3 deletions
total = [] total = []
def A(): def A():
while True: while True:
try: try:
unit= int(input("请输入:")) unit= int(input("请输入:"))
except: except:
...@@ -9,7 +8,7 @@ while True: ...@@ -9,7 +8,7 @@ while True:
else: else:
if unit == 1: if unit == 1:
break break
else:
total.append(unit) total.append(unit)
return unit
A() A()
print(total) print(total)
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