Commit d69758fb by BellCodeEditor

save project

parent c1432cdc
Showing with 7 additions and 2 deletions
...@@ -3,4 +3,9 @@ a=fill.readlines() ...@@ -3,4 +3,9 @@ a=fill.readlines()
fill.close() fill.close()
for i in a: for i in a:
list=i.split() list=i.split()
print(list[1:]) # print(list[1:])
\ No newline at end of file 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