Python 判断文件后缀

309 阅读1分钟
def file_extension(path): 
  return os.path.splitext(path)[1]