Commit 810ba2c4 by BellCodeEditor

save project

parent dc70412a
Showing with 23 additions and 0 deletions
total = []
def new_input():
while True:
money= input("请输入:")
if money== 'q':
break
try:
money=int(money)
except:
print('傻逼打错了')
else:
total.append(money)
finally:
print('-'*97)
return total
def sum(d):
cc=0
for i in d:
cc=cc+i
return cc
result=new_input()
pay=sum(result)
print('傻逼,'+str(pay)+'元给老子交出来,扫码现金都行。')
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