Changing directory in Google colab (breaking out of the python interpreter)

问题:

So I'm trying to git clone and cd into that directory using Google collab - but I cant cd into it.因此,我正在尝试使用 Google collab 将 git clone 和 cd 复制到该目录中 - 但我无法 cd 进入该目录。 What am I doing wrong?我究竟做错了什么?

!rm -rf SwitchFrequencyAnalysis && git clone https://github.com/ACECentre/SwitchFrequencyAnalysis.git !rm -rf SwitchFrequencyAnalysis && git clone https://github.com/ACECentre/SwitchFrequencyAnalysis.git

!cd SwitchFrequencyAnalysis !cd 开关频率分析

!ls datalab/ SwitchFrequencyAnalysis/ !ls 数据实验室/ SwitchFrequencyAnalysis/

You would expect it to output the directory contents of SwitchFrequencyAnalysis - but instead its the root.您会期望它输出 SwitchFrequencyAnalysis 的目录内容 - 而不是它的根。 I'm feeling I'm missing something obvious - Is it something to do with being within the python interpreter?我觉得我错过了一些明显的东西 - 这与在 python 解释器中有关吗? (where is the documentation??) (文档在哪里??)

Demo here. 演示在这里。


解决方案:

参考: https://stackoom.com/en/question/3GeYM
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章