Commit b3facbf4 by BellCodeEditor

save project

parent eb964058
Showing with 7 additions and 3 deletions
d=0
with open(r'c:\Users\123\Desktop\sss.txt','r',encoding='utf-8')as a: with open(r'c:\Users\123\Desktop\sss.txt','r',encoding='utf-8')as a:
b=a.readlines() b=a.readlines()
# print(b) # print(b)
for i in b: for i in b:
newb=i.split() newb=i.split()
print(newb) #print(newb)
# print(newb[1:]) # print(newb[1:])
for for c in newb[1:]:
\ No newline at end of file print(c)
d=d+int(c)
print(d)
\ 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