Commit 165024a3 by BellCodeEditor

save project

parent 8914fdc9
Showing with 6 additions and 2 deletions
...@@ -7,6 +7,10 @@ for i in f: ...@@ -7,6 +7,10 @@ for i in f:
sum = 0 sum = 0
for sales in data[1:]: for sales in data[1:]:
sum = sum+int(sales) sum = sum+int(sales)
g = data[0]+str(sum) g = data[0]+str(sum)+'\n'
fxh.append() fxh.append(g)
with open(r'C:\Users\Administrator\Desktop\新建文本文档.txt','w',encoding='utf-8') as filef:
h = filef.writelines(fxh)
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