Commit be53827a by BellCodeEditor

auto save

parent 578e41ee
Showing with 14 additions and 7 deletions
total = [] def new_input():
total = []
while True:
unit= input("请输入:")
if unit== 'q':
break
else:
total.append(unit)
print(total)
while True: while True:
unit= input("请输入:") e = input("are you sure?")
if unit== 'q': if e == "sure":
break new_input()
else: else:
total.append(unit) break
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