Commit 05d82836 by BellCodeEditor

save project

parent 0cc37ad4
Showing with 10 additions and 0 deletions
with open(r'c:\Users\Admin\Desktop\g.txt.txt','r',encoding='utf-8') as p:
a=p.readlines()
for i in a:
s=i.split()
g=0
for x in s[1:]:
g=g+int(x)
v=s[0]+':'+str(g)
print(v)
\ 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