首页 > Python 3.4里, 进入子目录的语法是什么?
比如,目前在根目录下,要进入子目录,该怎么做?
import os os.chdir(path_to_subdir)
这样? 获取当前工作目录可以用
os.getcwd()