comefrom: <qiyuangong>228_Summary_Ranges_2.py
code: def summaryRanges( nums):
      res = []
      start, ls = 0, len(nums)
      for i in range(ls):
          if i + 1 <  ls and nums[i + 1] == nums[i] + 1:
              continue
          if i == start:
              res.append(str(nums[start]))
          else:
              res.append("%d->%d" % (nums[start], nums[i]))
          start = i + 1
      return res
masked: def sample_funcname ( var_0 ) :
      var_1 = [ ]
      var_3 , var_5 = 0 , len ( var_0 )
      for var_7 in range ( var_5 ) :
          if var_7 + 1 < var_5 and var_0 [ var_7 + 1 ] == var_0 [ var_7 ] + 1 :
              continue
          if var_7 == var_3 :
              var_1.append ( str ( var_0 [ var_3 ] ) )
          else :
              var_1.append ( "%d->%d" % ( var_0 [ var_3 ] , var_0 [ var_7 ] ) )
          var_3 = var_7 + 1
      return var_1
  