<qiyuangong>058_Length_of_Last_Word_1.py
def lengthOfLastWord( s):
    if len(s) == 0:
        return 0
    temp = s.split(' ')
    temp = [t for t in temp if len(t) > 0]
    if len(temp) == 0:
        return 0
    else:
        return len(temp[-1])
def sample_funcname ( var_0 ) :
    if len ( var_0 ) == 0 :
        return 0
    var_5 = var_0.split ( ' ' )
    var_5 = [ var_6 for var_6 in var_5 if len ( var_6 ) > 0 ]
    if len ( var_5 ) == 0 :
        return 0
    else :
        return len ( var_5 [ - 1 ] )
