Commit 28ffb8ac by BellCodeEditor

save project

parent 2a57f3dd
Showing with 6 additions and 5 deletions
def new(): total = []
total = [] def new():
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()
\ No newline at end of file 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