os.path.isfile(file_path)

存在返回True

不存在返回False