docs: def line_width(line):
      """
      计算本行在输出到命令行后所占的宽度
      calculate the width of output in terminal
      """
      if six.PY2:
          assert isinstance(line, unicode)
      _line = width_cal_preprocess(line)
      result = sum(map(get_char_width, _line))
      return result