Colab改变运行目录的方法

​​​​​

import os
path = "/content/drive/MyDrive/path/to/repository/"
os.chdir(path)
print(os.getcwd())
"/content/drive/MyDrive/path/to/repository/"
path/to/repository/

你可能感兴趣的:(笔记,html,python)