2、方法:使用 os.path.splitext(file)0 可获得文件名 。使用 os.path.splitext(file)-1 可获得以 . 开头的文件后缀名 。
3、获取前缀(文件名称)
4、获取后缀(文件类型)