Commit eb4b02b2 by BellCodeEditor

auto save

parent eb1e40b5
Showing with 3 additions and 3 deletions
......@@ -12,5 +12,5 @@ for i in a:
hhh=data[0]+str(sum)+'\n'
file1_sum.append(hhh)
# print(hhh)
with open(r'C:\Users\A22\Desktop\sales_list.txt','r',encoding='utf-8') as file:
file.writelines(file1.sum)
\ No newline at end of file
with open(r'C:\Users\A22\Desktop\sales_list.txt','a',encoding='utf-8') as file1:
file1.writelines(file1_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