docs: def lines_of_content(content, width):
      """
      计算内容在特定输出宽度下实际显示的行数
      calculate the actual rows with specific terminal width
      """
      result = 0
      if isinstance(content, list):
          for line in content:
              _line = preprocess(line)
              result += ceil(line_width(_line) / width)
      elif isinstance(content, dict):
          for k, v in content.items():
              # 加2是算上行内冒号和空格的宽度
              # adding 2 for the for the colon and space ": "
              _k, _v = map(preprocess, (k, v))
              result += ceil((line_width(_k) + line_width(_v) + 2) / width)
      return int(result)