Commit baf6c8cd by BellCodeEditor

save project

parent bad8e6b5
Showing with 3 additions and 2 deletions
with open(r'c:\Users\MKJQR\Desktop\xxs.txt','r',encoding='utf-8') as file:
with open(r'c:\Users\MKJQR\Desktop\xxs.txt','r',encoding='utf-8') as file:
......@@ -9,5 +9,5 @@ for i in a:
sum+=int(u)
n=s[0]+' '+str(sum)+'\n'
c.append(n)
with open(r'c:\Users\MKJQR\Desktop\xxs.txt','a',encoding='utf-8') as file:
with open(r'c:\Users\MKJQR\Desktop\xxs.txt','w',encoding='utf-8') as file:
file.writelines(c)
\ 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