Commit b9c271ba by BellCodeEditor

save project

parent a7130a89
Showing with 2 additions and 0 deletions
...@@ -8,6 +8,7 @@ for i in a: ...@@ -8,6 +8,7 @@ for i in a:
for j in data[1:]: for j in data[1:]:
sum=sum+int(j) sum=sum+int(j)
result=data[0]+str(sum)+'\n' result=data[0]+str(sum)+'\n'
ass.append(result)
with open(r"C:\Users\Think\Desktop\新建文本文档.txt","a",encoding="utf-8") as file: with open(r"C:\Users\Think\Desktop\新建文本文档.txt","a",encoding="utf-8") as file:
file.writelines(ass) file.writelines(ass)
\ 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