Commit 51ad518c by BellCodeEditor

save project

parent 86256de3
Showing with 5 additions and 6 deletions
......@@ -7,9 +7,8 @@ for i in a:
sum=0
for salse in data[1:]:
sum=sum+int(salse)
w=data[0]+str(sum)
abcd.append(w)
w=data[0]+str(sum)+'\n'
abcd.append(w)
with open("C:\\Users\\Administrator\\Desktop\\sales_list.txt","a",encoding="utf-8")as file:
file.writelines(abcd)
\ No newline at end of file
with open("C:\\Users\\Administrator\\Desktop\\assales_list.txt","a",encoding="utf-8")as file:
file.writelines(abcd)
\ 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