Commit e68b40d2 by BellCodeEditor

save project

parent 9e6d65e1
Showing with 1 additions and 9 deletions
with open(r'C:\Users\Administrator\Documents\lesson13-1','r',encoding='utf-8') as file: with open(r'C:\Users\Administrator\Desktop\')
a=file.readlines()
for i in a :
data=i.split()
sum=0
for c in data[1:]:
sum = sum+int(c)
print(sum)
......
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