Commit 7ad3d40a by BellCodeEditor

save project

parent 0c072895
Showing with 2 additions and 1 deletions
......@@ -7,5 +7,5 @@ for i in a:
for a in data[1:]:
sum+=int(a)
fisum.append(data[0]+str(sum))
with open(r"c:\Users\0\Documents\lesson13-1\new_list.txt","r",encoding="utf-8") as f:
with open(r"c:\Users\0\Documents\lesson13-1\new_list.txt","a",encoding="utf-8") as f:
f.writelines(fisum)
\ 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