Commit 0093a68b by BellCodeEditor

save project

parent ee22ed73
Showing with 1 additions and 1 deletions
...@@ -9,7 +9,7 @@ with open(r'/Users/edz/Desktop/sales_list.txt','r',encoding='utf_8') as a: ...@@ -9,7 +9,7 @@ with open(r'/Users/edz/Desktop/sales_list.txt','r',encoding='utf_8') as a:
for e in c[1:]: for e in c[1:]:
d+=int(e) d+=int(e)
f=c[0]+str(d)+ '\n' f=c[0]+str(d)+ '\n'
g.append(f) g.append(f)
print(f) print(f)
with open(r'/Users/edz/Desktop/newsales_list.txt','w',encoding='utf_8') as a: with open(r'/Users/edz/Desktop/newsales_list.txt','w',encoding='utf_8') as a:
a.writelines(g) a.writelines(g)
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