Commit eb0f6bc3 by BellCodeEditor

auto save

parent 70d290a4
Showing with 6 additions and 3 deletions
...@@ -2,7 +2,7 @@ def new_input(): ...@@ -2,7 +2,7 @@ def new_input():
try: try:
total=int(input()) total=int(input())
total = [] total = []
except: except:
while True: while True:
unit= input("请输入:") unit= input("请输入:")
...@@ -10,5 +10,8 @@ def new_input(): ...@@ -10,5 +10,8 @@ def new_input():
break break
else: else:
total.append(unit) total.append(unit)
return total
print(total) print(total)
print(return)
\ No newline at end of file
\ No newline at end of file
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