Commit a508bf2b by BellCodeEditor

save project

parent 9c4a069c
Showing with 3 additions and 3 deletions
with open(r"c:\Users\Administrator\Documents\lesson13-1\sales_list.txt","r",encoding="utf-8") as a:
b=a.readlines()
#print(b)
d=[""]
d=[]
for i in b:
c=i.split()
s=0
......@@ -11,4 +11,4 @@ for i in b:
d.append(e)
with open(r"c:\Users\Administrator\Documents\lesson13-1\sales_list.txt","w",encoding="utf-8") as p:
p.write(d)
\ No newline at end of file
p.writelines(d)
\ 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