Commit fbc6c2e0 by BellCodeEditor

save project

parent d7816766
Showing with 12 additions and 5 deletions
with open(r"c:\Users\43823\Desktop\新建文本文档.txt","r",encoding='utf-8')as a:
s=a.readlines()
for i in s:
n=i.split()
print(n[1:])
with open(r"c:\Users\maku\Desktop\a.txt","r",encoding='utf-8')as a:
sb=a.readlines()
for i in sb:
i=i.split()
s=0
for b in i[1:]:
s=s+int(b)
print(i[0]+str(s))
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