python os.path.dirname()

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

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

 

posted @ 2019-01-03 15:12  筱筱的春天  阅读(484)  评论(0编辑  收藏  举报