Commit 7df2e7e7 by BellCodeEditor

save project

parent 8c2488b0
Showing with 1 additions and 1 deletions
......@@ -9,7 +9,7 @@ for i in q:
sum+= int(sales)
c=a[0]+str(sum)+"\n"
b.append(c)
with open(r"c:\Users\丽达2号\Documents\lesson13-1\sales_list1.txt","a",encoding="utf-8")as renyifei:
with open(r"c:\Users\丽达2号\Documents\lesson13-1\sales_list1.txt","w",encoding="utf-8")as renyifei:
renyifei.writelines(b)
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