Python 改变和获取当前工作目录

import os

os.chdir("目标目录")   #修改当前工作目录

os.getcwd()    #获取当前工作目录

posted @ 2021-10-08 22:22  Raymone1125  阅读(92)  评论(0编辑  收藏  举报