Commit af95cb9b by BellCodeEditor

save project

parent 2e5db67d
Showing with 22 additions and 14 deletions
def qwer(): import demo
money=[]
cont=0 a=demo.asdf()
while True: b=demo.uiop(a)
a=input("输入价格,结束按q\n") print("一共消费"+str(b)+"元")
if a=="q": \ No newline at end of file
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
def asdf():
zxcv=[]
while True:
a=input("输入价格,结束按q\n")
if a=="q":
break
else:
zxcv.insert(0,int(a))
return(zxcv)
def uiop(zxcv_list):
b=0
for i in zxcv_list:
b=b+i
return(b)
\ 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