dirname和absname区别

os.path.dirname(file) 返回.py文件的绝对路径(完整路径)

os.path.absname(file)返回.py文件的目录

posted @ 2019-02-14 10:39  Genfir  阅读(256)  评论(0编辑  收藏  举报