Commit 93c15634 by BellCodeEditor

save project

parent c3c04b26
Showing with 2 additions and 1 deletions
...@@ -8,5 +8,5 @@ with open(r"C:\Users\86186\Documents\lesson13-1\sales_list.txt","r",encoding="ut ...@@ -8,5 +8,5 @@ with open(r"C:\Users\86186\Documents\lesson13-1\sales_list.txt","r",encoding="ut
sum=sum+int(c) sum=sum+int(c)
d=b[0]+str(sum)+'\n' d=b[0]+str(sum)+'\n'
e.append(d) e.append(d)
with open(r"C:\Users\86186\Desktop\new.txt","r",encoding="utf-8")as flie: with open(r"C:\Users\86186\Desktop\new.txt","a",encoding="utf-8")as flie:
flie.writelines(e) flie.writelines(e)
\ 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