Commit 8b84c4f5 by BellCodeEditor

auto save

parent 7f7128bb
Showing with 6 additions and 2 deletions
...@@ -2,4 +2,9 @@ with open(r"C:\Users\蔡铭轩\Desktop\新建 文本文档.txt",'r',encoding="ut ...@@ -2,4 +2,9 @@ with open(r"C:\Users\蔡铭轩\Desktop\新建 文本文档.txt",'r',encoding="ut
a=file.readlines() a=file.readlines()
for i in a: for i in a:
s=i.split() s=i.split()
print(s[1:]) d=0
\ No newline at end of file for g in s[1:]:
d=d+int(g)
h=s[0]+str(d)
print(h)
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