os.path

os.path.basename 取文件路径的文件名,
os.path.dirname(relative_path) 相当于cd ..



原文地址:https://www.cnblogs.com/1a2a/p/11325301.html