Commit d1a3f164 by BellCodeEditor

save project

parent dc70412a
Showing with 24 additions and 0 deletions
def abc():
total = []
while True:
unit= input("请输入,按q键退出:")
if unit== 'q':
break
else:
try:
unit=int(unit)
except:
print('可能没有数字或内有其他内容,请重试!')
else:
total.append(unit)
return total
a=abc()
def dij(e):
f=0
for i in e:
f=f+i
print(f)
print('请选择支付方式:')
dij(a)
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