Commit 9127aaec by BellCodeEditor

save project

parent 05e7d622
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)+'元给老子交出来,扫码现金都行。')
import func
data=func.new_input()
score=func.sum(data)
print('傻逼,总分'+str(score)+'都算不出来吗,你个小弟弟')
\ 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