comefrom: <qiyuangong>388_Longest_Absolute_File_Path_1.py
code: def lengthLongestPath( input):
      if input is None or len(input) == 0:
          return 0
      lines = input.split('\n')
      last_level_len = [0] * (len(lines) + 1); max_len = 0
      for line in lines:
          try:
              level = line.rindex('\t') + 1
          except:
              level = 0
          cur_len = last_level_len[level + 1] = last_level_len[level] + len(line) - level + 1
          if '.' in line:
              max_len = max(max_len, cur_len - 1)
      return max_len
masked: def sample_funcname ( var_0 ) :
      if var_0 is None or len ( var_0 ) == 0 :
          return 0
      var_6 = var_0.split ( '\n' )
      var_8 = [ 0 ] * ( len ( var_6 ) + 1 ) ; var_9 = 0
      for var_10 in var_6 :
          try :
              var_13 = var_10.rindex ( '\t' ) + 1
          except :
              var_13 = 0
          var_14 = var_8 [ var_13 + 1 ] = var_8 [ var_13 ] + len ( var_10 ) - var_13 + 1
          if '.' in var_10 :
              var_9 = max ( var_9 , var_14 - 1 )
      return var_9
  