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