时间:2020-10-10 22:23:03 | 栏目:Python代码 | 点击:次
实例如下所示:
#########start 获取文件路径、文件名、后缀名############ def jwkj_get_filePath_fileName_fileExt(filename): (filepath,tempfilename) = os.path.split(filename); (shotname,extension) = os.path.splitext(tempfilename); return filepath,shotname,extension #########end 获取文件路径、文件名、后缀名############