Commit 5b1aa188 by BellCodeEditor

auto save

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