Commit 034f0f1f by BellCodeEditor

save project

parent 2156266d
Showing with 2 additions and 1 deletions
...@@ -9,5 +9,5 @@ for i in a: ...@@ -9,5 +9,5 @@ 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\65415\Desktop\'l''zh''h'.txt",'a',encoding='utf-8') as fiel: with open(r'c:\Users\65415\Documents\lesson13-5\sales_list.txt','a',encoding='utf-8') as fiel:
fiel.writelines(final_sum) fiel.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