Commit 6a91eebe by BellCodeEditor

save project

parent a01e969b
Showing with 1 additions and 1 deletions
......@@ -7,7 +7,7 @@ with open(r'c:\Users\003\Documents\lesson13-3\sales_list.txt','r',encoding='utf-
s=0
for sales in data[1:]:
s=s+int(sales)
r=data[0]+" "+str(s)
r=data[0]+" "+str(s)+"\n"
l.append(r)
with open(r'C:\Users\003\Desktop\test.txt','a',encoding='utf-8')as dd:
......
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