Commit 184922b7 by BellCodeEditor

save project

parent 91521a30
Showing with 6 additions and 2 deletions
...@@ -2,5 +2,8 @@ with open (r'c:\Users\Administrator\Desktop\123.txt','r',encoding='utf_8')as a: ...@@ -2,5 +2,8 @@ with open (r'c:\Users\Administrator\Desktop\123.txt','r',encoding='utf_8')as a:
b=a.readlines() b=a.readlines()
for i in b: for i in b:
c=i.split() c=i.split()
e=0
print(c[1:]) #print
for d in c[1:]:
e+=int(d)
print(e)
\ 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