Commit df6a2e90 by BellCodeEditor

save project

parent a59aef84
Showing with 8 additions and 1 deletions
......@@ -3,6 +3,13 @@ with open(r'C:\Users\Administrator\Desktop\text.txt','r',encoding='gbk')as file:
#print(a)
for i in a:
b=i.split()
print(b)
#print(b)
sum=0
for c in b[1:]:
sum=sum+int(c)
d=b[0]+str(sum)
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