Commit 2e5db67d by BellCodeEditor

save project

parent c7f13945
Showing with 14 additions and 0 deletions
def qwer():
money=[]
cont=0
while True:
a=input("输入价格,结束按q\n")
if a=="q":
break
else:
money.insert(0,int(a))
for i in money:
count=count+i
return(count)
print("本次消费"+str(qwer())+"元")
\ 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