Commit 1f34955c by BellCodeEditor

save project

parent 66581718
Showing with 2 additions and 1 deletions
...@@ -8,5 +8,5 @@ for i in a: ...@@ -8,5 +8,5 @@ for i in a:
sum=sum+int(hhh) sum=sum+int(hhh)
d=data[0]+str(sum)+'\n' d=data[0]+str(sum)+'\n'
hi.append(d) hi.append(d)
with open(r'c:\Users\23636\Documents\lesson13-1\sales_list.txt','a',encoding='utf-8')as fill: with open(r'c:\Users\23636\Documents\lesson13-1\sales_list.txt','a',encoding='utf-8') as fill:
fill.writelines(hi) fill.writelines(hi)
\ 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