摘要: 1 os.path.abspath(path) #返回绝对路径 2 3 os.path.basename(path) #返回文件名 4 5 os.path.commonprefix(list) #返回list(多个路径)中,所有path共有的最长的路径。 6 7 os.path.dirname(pa 阅读全文
posted @ 2020-07-01 12:45 mikigo 阅读(459) 评论(0) 推荐(0) 编辑