diff --git a/diy.py b/diy.py index 9fdf5eb..c1a997d 100644 --- a/diy.py +++ b/diy.py @@ -8,4 +8,7 @@ for i in b: for j in data[1:]: sum=sum+int(j) c=data[0]+str(sum)+'\n' - new_sum=new_sum+c \ No newline at end of file + new_sum=new_sum+c + +b=open(r'c:\Users\Administrator\Desktop\2232.txt','w',encoding='utf-8') +b.writelines(new_sum) \ No newline at end of file