Commit 9682f917 by BellCodeEditor

save project

parent 1aad2b9d
Showing with 4 additions and 2 deletions
......@@ -5,9 +5,11 @@ for i in a:
sum=0
for sales in data[1:]:
sum=sum+int(sales)
result=data[0]+str(sum)
result=data[0]+str(sum)+'\n'
final_sum.append(result)
print(result)
with open(r'C:\Users\Administrator\Desktop\test1.txt','a',encoding='utf-8') as file2:
file2.writelines(final_sum)
......
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