<qiyuangong>328_Odd_Even_Linked_List_2.py
def oddEvenList( head):
    if (head != None):
        x = []
    else:
        return []
    while (head.next != None):
        x.append(head.val)
        head = head.next
    x.append(head.val)
    return x[0::2] + x[1::2]
def sample_funcname ( var_0 ) :
    if ( var_0 != None ) :
        var_2 = [ ]
    else :
        return [ ]
    while ( var_0.next != None ) :
        var_2.append ( var_0.val )
        var_0 = var_0.next
    var_2.append ( var_0.val )
    return var_2 [ 0 : : 2 ] + var_2 [ 1 : : 2 ]
