python os.path.dirname()

 ----返回文件所在的路径

----如果path变量直接是文件名则返回空

原文地址:https://www.cnblogs.com/baxianhua/p/10214313.html