Commit 024dc9d2 by BellCodeEditor

save project

parent a9161ca7
Showing with 17 additions and 8 deletions
def func(): def func():
total = [] total = []
while True: while True:
unit= input("请输入:") unit = input('请输入(q提出):')
if unit== 'q': if unit =='q':
break break
else: else:
total.append(unit) try:
print(total) total = []
\ No newline at end of file except:
print("请")
else:
total.append(unit)
print("-"*30)
print(total)
func()
\ 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