Commit b384113b by BellCodeEditor

save project

parent 1effe331
Showing with 4 additions and 3 deletions
...@@ -6,7 +6,8 @@ for i in data: ...@@ -6,7 +6,8 @@ for i in data:
sum =0 sum =0
for j in b[1:]: for j in b[1:]:
sum = sum+int(j) sum = sum+int(j)
c = b[0]+str(sum)+'\n' c = b[0]+str(sum)+"\n"
o.append(c) o.append(c)
with open(r"c:\Users\hp\Desktop\666.txt","a",encoding="utf-8")as f: with open(r"c:\Users\hp\Desktop\666.txt","a",encoding="utf-8")as f:
f.writelines(o) f.writelines(o)
\ No newline at end of file
\ 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