Commit 28ffb8ac by BellCodeEditor

save project

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