Commit 22291d3a by BellCodeEditor

auto save

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