Commit f599b2e8 by BellCodeEditor

save project

parent 3d62087b
Showing with 5 additions and 4 deletions
total = []
def new_input():
while True:
unit= input("请输入:")
if unit== 'q':
try:
a=int(input('请输入价格'))
except:
break
else:
total.append(unit)
print(total)
total.append(a)
new_input()
print(total)
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