Commit 01cda92b by BellCodeEditor

auto save

parent 54b608df
Showing with 7 additions and 1 deletions
...@@ -3,4 +3,9 @@ a=file.readlines() ...@@ -3,4 +3,9 @@ a=file.readlines()
file.close() file.close()
for i in a: for i in a:
list=i.split() list=i.split()
print(list[1:]) #print(list[1:])
sum=0
for date in list[1:]:
sum=sum+int(date)
rs=list[0]+str(sum)
print(rs)
\ 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