Commit 07f3f89b by BellCodeEditor

auto save

parent 5ec53ebb
Showing with 11 additions and 0 deletions
with open(r'c:\Users\26852\Desktop\jk.txt','r',encoding='utf_8') as jk:
a=jk.readlines()
#print(a)
for i in a:
b=i.split()
#print(b[1:])
sum=0
for d in b[1:]:
sum=sum+int(d)
ming=b[0]+str(sum)
print(ming)
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