首页 > 技术文章 > python os.path.dirname()

baxianhua 2019-01-03 15:12 原文

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

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

 

推荐阅读