os.getcwd() 返回当前工作目录 os.chown(path, uid, gid) 更改文件所有者 os.chdir(path) 改变当前工作目录 os.fchdir(fd) 通过文件描述符改变当前工作目录 参考 Python OS 文件/目录方法