code: def multi_replace(original, pattens, delim='|,'):
      
      if not original:
          return ''
  
      if not delim or len(delim) != 2:
          delim = '|,'
  
      # 最外层分隔符, 第二层分隔符
      level0, level1 = delim[0], delim[1]
  
      for re_pair in pattens.split(level0):
          _f, _to = re_pair, ''
  
          re_pair = re_pair.split(level1)
          if len(re_pair) == 2:
              _f, _to = re_pair
          original = original.replace(_f, _to)
      return original
docs: 使用 ``multi_delim`` 中的所有规则来替换 ``original`` 字符串内容
  
      >>> orig = '今天是一个好天气'
      >>> multi_replace(orig, '今天|是|好天气')
      '一个'
      >>> multi_replace(orig, '今天,today |是,is |好天气,good weather')
      'today is 一个good weather'
  
      :param delim: 分隔符, 外层 `|` 内层 `,`
      :type delim:
      :param original: 原始字符串
      :type original: str
      :param pattens: 替换规则
      :type pattens: str
      :return:
      :rtype: