comefrom: <doocs>0241.Different Ways to Add Parentheses_1.py
code: def dfs(exp):
      if exp.isdigit():
          return [int(exp)]
      ans = []
      for i, c in enumerate(exp):
          if c in '-+*':
              left, right = dfs(exp[:i]), dfs(exp[i + 1 :])
              for a in left:
                  for b in right:
                      if c == '-':
                          ans.append(a - b)
                      elif c == '+':
                          ans.append(a + b)
                      else:
                          ans.append(a * b)
      return ans
masked: def sample_funcname ( var_1 ) :
      if var_1.isdigit ( ) :
          return [ int ( var_1 ) ]
      var_2 = [ ]
      for var_3 , var_4 in enumerate ( var_1 ) :
          if var_4 in '-+*' :
              var_5 , var_6 = var_0 ( var_1 [ : var_3 ] ) , var_0 ( var_1 [ var_3 + 1 : ] )
              for var_7 in var_5 :
                  for var_8 in var_6 :
                      if var_4 == '-' :
                          var_2.append ( var_7 - var_8 )
                      elif var_4 == '+' :
                          var_2.append ( var_7 + var_8 )
                      else :
                          var_2.append ( var_7 * var_8 )
      return var_2
  