Commit a4db8832 by BellCodeEditor

save project

parent ac4ee88c
Showing with 6 additions and 2 deletions
......@@ -3,4 +3,8 @@ with open(r'c:\Users\Administrator\Desktop\142857.txt','r',encoding='utf-8') as
#print(a)
for i in a:
b=i.split()
print(b[1:])
\ No newline at end of file
#print(b[1:])
sum=0
for m in b[1:]:
sum+=int(m)
print(b[0]+str(sum))
\ 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