绝对路径 os.path.abspath("文件名") 参数可为“”即当前路径 相对路径 os.path.dirname("文件名") 参数可为“”即当前路径 相关文章: 2021-05-29 2022-02-03 2021-11-22 2022-12-23 2022-12-23 2021-11-27