Commit 4521857e by BellCodeEditor

save project

parent eefcfe7d
Showing with 3 additions and 2 deletions
...@@ -10,7 +10,7 @@ for i in a: ...@@ -10,7 +10,7 @@ for i in a:
sum=sum+int(sales) sum=sum+int(sales)
result=data[0]+str(sum)+'\n' result=data[0]+str(sum)+'\n'
final_sum.append(result) final_sum.append(result)
with open(r'C:\Users\玛酷机器人\Desktop\sales_list.txt','a',encoding='utf-8')as file: with open(r'C:\Users\玛酷机器人\Desktop\sales_list.txt','w',encoding='utf-8')as file:
file.writelines() file.writelines(final_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