Friday, October 14

Прелести Питона

[' Raul Meireles ', ' out for ', ' Andy Carroll ', " 22' ", ' Luis Suarez ', ' out for ', ' Stewart Downing ', " 59' ", ' Charlie Adam ', ' out for ', ' Jonjo Shelvey ', " 77' "]

coming_off = line[::4] 
coming_on = line[2::4] 
time = line[3::4] 
print (coming_off, coming_on, time) 

[' Raul Meireles ', ' Luis Suarez ', ' Charlie Adam '] [' Andy Carroll ', ' Stewart Downing ', ' Jonjo Shelvey '] [" 22' ", " 59' ", " 77' "]

1 comment:

Ingumsky said...

Красиво!