Commit ac95e761 by BellCodeEditor

save project

parent dc70412a
Showing with 32 additions and 0 deletions
def abcd():
total=[]
while True:
a=input('请输入:')
if a=="q":
break
else:
try:
a=int(a)
except:
print("输入一个数字")
else:
total.append(a)
return total
def efgh(qwerty):
a=0
for i in qwerty:
a=a+i
return a
b=abcd()
c=efgh(b)
print("您一共消费了"+str(c)+"元,扫码还是现金")
def werrt():
a=1
b=1
c=a+b
return c
d=werrt()
print(werrt())
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