如何确定Google Colab中的文件路径? [英] How to determine file path in Google colab?

查看:58
本文介绍了如何确定Google Colab中的文件路径?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用以下方法挂载了驱动器:来自google.colab导入驱动器drive.mount('/content/drive/')

I mounted my drive using this : from google.colab import drive drive.mount('/content/drive/')

我在文件夹中有一个文件,我想要确定该路径的路径?假设包含该文件的文件夹在我的驱动器中名为"x"

I have a file inside a folder that I want the path of how do I determine the path? Say the folder that contains the file is named 'x' inside my drive

推荐答案

路径将为/content/drive/My \ Drive/x/the_file .

这篇关于如何确定Google Colab中的文件路径?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆