Commit 04c65f30 by BellCodeEditor

save project

parent 2471aabb
Showing with 5 additions and 1 deletions
...@@ -3,4 +3,8 @@ with open(r"C:\Users\makcoo\Desktop\test.txt",'r',encoding='utf_8')as file1: ...@@ -3,4 +3,8 @@ with open(r"C:\Users\makcoo\Desktop\test.txt",'r',encoding='utf_8')as file1:
#print(a) #print(a)
for i in a: for i in a:
A=i.split() A=i.split()
print(A[1:]) aa=0
for b in A[1:]:
aa=aa+int(b)
d=A[0]+str(aa)
print(d)
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