<qiyuangong>280_Wiggle_Sort_4.py
def wiggleSort( nums):
    for i in range(len(nums) - 1):
        if (i % 2 == 0 and nums[i] > nums[i + 1]) or\
           (i % 2 == 1 and nums[i] < nums[i + 1]):
            nums[i], nums[i + 1] = nums[i + 1], nums[i]
def sample_funcname ( var_0 ) :
    for var_4 in range ( len ( var_0 ) - 1 ) :
        if ( var_4 % 2 == 0 and var_0 [ var_4 ] > var_0 [ var_4 + 1 ] ) or ( var_4 % 2 == 1 and var_0 [ var_4 ] < var_0 [ var_4 + 1 ] ) :
            var_0 [ var_4 ] , var_0 [ var_4 + 1 ] = var_0 [ var_4 + 1 ] , var_0 [ var_4 ]
