Commit 49f39da4 by BellCodeEditor

auto save

parent 871f150d
Showing with 1 additions and 2 deletions
...@@ -8,8 +8,7 @@ for i in a : ...@@ -8,8 +8,7 @@ for i in a :
sum=0 sum=0
for se in data[1:]: for se in data[1:]:
sum=sum+int(se) sum=sum+int(se)
m=data[0]+str(sum) m=data[0]+str(sum)+'\n'
f2.append(m)
print(m) print(m)
f2.append(m) f2.append(m)
with open(r'C:\Users\Administrator\Desktop\test.txt','w',encoding="utf-8") as t: with open(r'C:\Users\Administrator\Desktop\test.txt','w',encoding="utf-8") as t:
......
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