Commit 59785e3c by BellCodeEditor

save project

parent 6188f045
Showing with 0 additions and 1 deletions
...@@ -7,7 +7,6 @@ for i in a: ...@@ -7,7 +7,6 @@ for i in a:
for i in data[1:]: for i in data[1:]:
sum=sum+int(i) sum=sum+int(i)
b=data[0]+str(sum)+'\n' b=data[0]+str(sum)+'\n'
c.append(b)
print(b) print(b)
with open(r'D:\应浩辰\sales_list.txt','a',encoding='utf-8') as t: with open(r'D:\应浩辰\sales_list.txt','a',encoding='utf-8') as t:
t.writelines(c) t.writelines(c)
......
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