Commit 5552043c by BellCodeEditor

save project

parent febdba9a
Showing with 4 additions and 2 deletions
total = []
def in_input(): def in_input():
total = []
while True: while True:
unit= input("请输入:") unit= input("请输入:")
try: try:
...@@ -12,5 +12,6 @@ def in_input(): ...@@ -12,5 +12,6 @@ def in_input():
continue continue
else: else:
total.append(o) total.append(o)
print(total) return total
in_input() in_input()
print(total)
\ 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