Sorting a list depending of the indexes of another sorted list

J. Peng jpeng at block.duxieweb.com
Mon Jan 21 03:23:50 EST 2008


J. Peng 写道:

>    k = (i.split())[3]
>    y = (i.split())[1]

btw, why can't I write the above two into one statement?

(k,y) = (i.split())[3,1]



More information about the Python-list mailing list