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
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章