Commit af735e3a by BellCodeEditor

save project

parent 51740848
Showing with 6 additions and 5 deletions
total = []
def new_input(): def new_input():
total = []
while True: while True:
try: try:
unit = int(input("请输入:")) unit = int(input("请输入:"))
...@@ -8,6 +9,6 @@ def new_input(): ...@@ -8,6 +9,6 @@ def new_input():
break break
else: else:
total.append(unit) total.append(unit)
print(total)
return return total
new_input() print(new_input())
\ 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