Commit 069101ae by BellCodeEditor

save project

parent a03d0d9a
Showing with 2 additions and 1 deletions
......@@ -8,5 +8,5 @@ for i in a:
sum=sum+int(sales)
result=data[0]+str(sum)+"\n"
fila_sum.append(result)
with open (r'c:\Users\BBTC\Desktop\sales_list.txt',"r",encoding="utf-8") as file:
with open (r'c:\Users\BBTC\Desktop\sales_list.txt',"a",encoding="utf-8") as file:
file.writelines(fila_sum)
\ 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