Commit 29f1abdf by BellCodeEditor

save project

parent 7c261a4a
Showing with 5 additions and 2 deletions
...@@ -8,4 +8,7 @@ for i in b: ...@@ -8,4 +8,7 @@ for i in b:
for j in data[1:]: for j in data[1:]:
sum=sum+int(j) sum=sum+int(j)
c=data[0]+str(sum)+'\n' c=data[0]+str(sum)+'\n'
new_sum=new_sum+c new_sum=new_sum+c
\ No newline at end of file
b=open(r'c:\Users\Administrator\Desktop\2232.txt','w',encoding='utf-8')
b.writelines(new_sum)
\ 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