📜  python 文件父级 - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:30.577000             🧑  作者: Mango

代码示例1
from pathlib import Path
path = Path("/here/your/path/file.txt")
print(path.parent.absolute())