Commit 6ee1def7 by BellCodeEditor

save project

parent 0514d84f
Showing with 5 additions and 1 deletions
......@@ -2,5 +2,9 @@ with open(r'C:\Users\Administrator\Desktop\12.txt','r',encoding='utf-8') as c:
a=c.readlines()
for i in a:
x=i.split()
print(x[1:])
n=0
for v in x[1:]:
n=n+int(v)
k=x[0]+':'+str(n)
print(k)
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