如何确定 Google colab 中的文件路径?

Tan*_*gar 5 python google-colaboratory

我使用这个安装了我的驱动器: from google.colab import drive drive.mount('/content/drive/')

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

Bob*_*ith 7

路径将是/content/drive/My\ Drive/x/the_file


小智 5

作为函数参数的路径将是/content/drive/My Drive/x/the_file,因此在My Drive 中没有反斜杠