赞
踩
filePath='result/result.result'
文件名(带后缀):fileName=os.path.basename(filePath)
文件名(不带后缀):fileName=os.path.splitext(os.path.basename(filePath))[0]
文件夹:fileSubPath=os.path.dirname(filePath)