简体   繁体   English

在google colab中更改目录

[英]Changing directory in google colab

I am using Google Colab to practice some coding and trying to import files from Excel. I tried to change the directory to my one drive folder or driver D, but it doesn't work.我正在使用 Google Colab 练习一些编码并尝试从 Excel 导入文件。我尝试将目录更改为我的一个驱动器文件夹或驱动器 D,但它不起作用。 Python is the name of the folder that contains my Excel file. Python 是包含我的 Excel 文件的文件夹的名称。

Here is the code I used:os.chdir(r"D:/Python")这是我使用的代码:os.chdir(r"D:/Python")

Here is the error I take: FileNotFoundError: [Errno 2] No such file or directory: 'D:/Python'这是我遇到的错误:FileNotFoundError: [Errno 2] No such file or directory: 'D:/Python'

Any help is appriciated.任何帮助都适用。

Related stackoverflow question相关的计算器问题

There an answer for creating temporary URLs有创建临时 URL 的答案

Another answer for using onedrivesdk使用onedrivesdk的另一个答案

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM