Commit f08c3166 by BellCodeEditor

save project

parent 21c79935
Showing with 5 additions and 1 deletions
...@@ -4,5 +4,9 @@ with open(r'C:\Users\Administrator\Desktop\test.txt','r',encoding="utf-8") as t: ...@@ -4,5 +4,9 @@ with open(r'C:\Users\Administrator\Desktop\test.txt','r',encoding="utf-8") as t:
for i in a : for i in a :
#print(i) #print(i)
data=i.split() data=i.split()
print(data[1:]) sum=0
for se in data[1:]:
sum=sum+int(se)
m=data[0]+str(sum)
print(m)
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