<qiyuangong>027_Remove_Element_1.py
def removeElement( nums, val):
    ls = len(nums)
    if ls == 0:
        return ls
    pos = 0
    for i in range(ls):
        if nums[i] == val:
            continue
        else:
            nums[pos] = nums[i]
            pos += 1
    
    return pos
def sample_funcname ( var_0 , var_1 ) :
    var_3 = len ( var_0 )
    if var_3 == 0 :
        return var_3
    var_5 = 0
    for var_7 in range ( var_3 ) :
        if var_0 [ var_7 ] == var_1 :
            continue
        else :
            var_0 [ var_5 ] = var_0 [ var_7 ]
            var_5 += 1
    return var_5
