def do_files_exist ( filenames ) : preexisting = [ tf . io . gfile . exists ( f ) for f in filenames ] return any ( preexisting )
python judge whether a file is used
Whether any of the filenames exist .
def do_files_exist(filenames):
  """Whether any of the filenames exist."""
  preexisting = [tf.io.gfile.exists(f) for f in filenames]
  return any(preexisting)