Commit 89eae676 by BellCodeEditor

auto save

parent 2d27adfb
Showing with 12 additions and 1 deletions
with open(r'/Users/zll/Desktop/sales_list.txt','r',encoding='utf-8') as f: with open(r'/Users/zll/Desktop/sales_list.txt','r',encoding='utf-8') as f:
a=f.readlines() a=f.readlines()
zz=[]
for i in a: for i in a:
print(i) aa=i.split()
sum=0
for x in aa[1:]:
sum=sum+int(x)
qq=aa[0]+str(sum)
zz.append(qq)
print(zz)
\ No newline at end of file
p=open(r'/Users/zll/Desktop/s__anh.txt','r',encoding='utf-8')
\ 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