python中路径查找汇总

os.getcwd()查看当前工作路径
os.path.exists()判断文件是否存在
os.rmdir()删除文件或空文件夹
os.listdir()列出文件名

sys.path 查询程序运行时搜索的路径

原文地址:https://www.cnblogs.com/xuehaiwuya0000/p/10891561.html