Commit 024dc9d2 by BellCodeEditor

save project

parent a9161ca7
Showing with 13 additions and 3 deletions
def func():
total = []
while True:
unit= input("请输入:")
if unit== 'q':
while True:
unit = input('请输入(q提出):')
if unit =='q':
break
else:
try:
total = []
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