code: def read_file(file_path, **kws):
      
      kw = {"mode":"r", "encoding":"utf-8"}
      if kws:
          for k,v in kws.items():
              kw[k] = v
      with open(file_path, **kw) as afile:
          txt = afile.read()
      return txt
docs: 读取文本文件的内容。
  
      :param str file_path: 文件路径。
      :returns: 文件内容。
      :rtype: str