Commit ce27d3fc by BellCodeEditor

save project

parent 51d2dfb8
Showing with 9 additions and 0 deletions
with open(r'c:\Users\Administrator\Desktop\1.txt','r',encoding='utf-8') as l:
ll=l.readlines()
for a in ll:
a=a.split()
sum=0
for w in a[1:]:
sum=sum+int(w)
s=a[0]+":"+str(sum)
print(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