Python python怎么获取上一级目录 可以使用 os.path.abspath() 函数结合 os.path.dirname() 函数来获取上一级目… 124次阅读 0个评论 Python 2024-02-05