Commit 035d43dc by BellCodeEditor

save project

parent 2182fbe4
Showing with 3 additions and 2 deletions
with open(r'c:\Users\Administrator\Documents\lesson13-1\sales_list.txt','r',encoding='utf_8') as file:
a=file.readlines()
boo=[]
for i in a:
data=i.split()
# print(data)
......@@ -9,7 +9,8 @@ for i in a:
sum+=int(f)
k=data[0]+str(sum)
print(k)
with open(r'c:\Users\Administrator\Documents\lesson13-1\sales_list.txt','r',encoding='utf_8') as file:
file.writelines(boo)
......
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