Commit 22291d3a by BellCodeEditor

auto save

parent 773aa05f
Showing with 5 additions and 13 deletions
def sb(): price=[15,18,14,25]
total = [] count=0
while True: for i in price:
unit= input("请输入:") count = count+i
if unit== 'q': print(count)
break
else:
total.append(unit)
print('2',total)
return total
a=sb()
print('1',a)
\ 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