Commit 7bad7bb2 by BellCodeEditor

auto save

parent 68df53db
Showing with 7 additions and 5 deletions
p=0
with open(r'd:\sales_list.txt','r',encoding='utf-8') as a:
b=a.readlines()
print('-'*246)
for i in b:
c=i.split()
d=c[1:]
m=0
for e in d:
m+=int(e)
print(m)
\ No newline at end of file
年华财富
p=p+m
print(c[0]+':'+str(m)+'元')
print('*'*10+'一共'+str(p)+'元'+'*'*10)
\ 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