Commit 069f2a4a by BellCodeEditor

save project

parent e3343a20
Showing with 0 additions and 2 deletions
...@@ -9,7 +9,6 @@ with open(r'c:\Users\Ding\Documents\lesson13-1\sales_list.txt','r',encoding='utf ...@@ -9,7 +9,6 @@ with open(r'c:\Users\Ding\Documents\lesson13-1\sales_list.txt','r',encoding='utf
for d in c: for d in c:
z=z+int(d) z=z+int(d)
y=b[0]+str(z)+'\n' y=b[0]+str(z)+'\n'
x.append(y)
with open(r'c:\Users\Ding\Documents\lesson13-1\sales_list.txt','a',encoding='utf-8') as sales_list: with open(r'c:\Users\Ding\Documents\lesson13-1\sales_list.txt','a',encoding='utf-8') as sales_list:
sales_list.writelines(x) sales_list.writelines(x)
\ 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