可以使用 os 模組在 Python 中更改目錄或 cd。它接收要切換到的目錄的相對/絕對路徑作為輸入。
>>> import os >>> os.chdir('my_folder')
916 次瀏覽
完成課程即可獲得認證