docs: def read_file(file_name, encoding='utf-8'):
      """
      读文本文件
      :param encoding:
      :param file_name:
      :return:
      """
      with open(file_name, 'rb') as f:
          data = f.read()
  
      if encoding is not None:
          data = data.decode(encoding)
  
      return data