conn = re.sub(result, '\r\n', content)
res = "".join(
  [s for s in conn.strip().splitlines(True) if s.strip()])

相关文章: