摘要: 主要介绍了python获取文件扩展名的方法,涉及Python针对文件路径的相关操作技巧。具体实现方法如下: 1 2 3 4 import os.path def file_extension(path): return os.path.splitext(path)[1] print file_ext 阅读全文
posted @ 2018-02-10 15:39 littlevigra 阅读(38398) 评论(4) 推荐(0) 编辑