Commit dee8c2f7 by BellCodeEditor

save project

parent 695ca819
Showing with 2 additions and 3 deletions
sum=0 sum=0
b=[]
with open(r'c:\Users\EDZ\Documents\lesson13-1\sales_list.txt',"r",encoding='utf-8') as file: with open(r'c:\Users\EDZ\Documents\lesson13-1\sales_list.txt',"r",encoding='utf-8') as file:
a=file.readlines() a=file.readlines()
for i in a: for i in a:
...@@ -11,4 +10,4 @@ for i in a: ...@@ -11,4 +10,4 @@ for i in a:
print(result) print(result)
b.append(result) b.append(result)
with open(r'c:\Users\EDZ\Desktop\test.txt',"a",encoding='utf-8') as c: with open(r'c:\Users\EDZ\Desktop\test.txt',"a",encoding='utf-8') as c:
c.writelines(b) c.brint()
\ No newline at end of file \ 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