# -*- coding: utf-8 -*-
#python 27
#xiaodeng
#python模块之imghdr(识别不同格式的图片文件)



import imghdr
'''>>> help(imghdr)
Help on module imghdr:
FUNCTIONS
    what(file, h=None)

DATA
    __all__ = ['what']
'''
#imghdr 模块可识别不同格式的图片文件.
url=r'9.gif'
print imghdr.what(url)

 

相关文章:

  • 2022-12-23
  • 2022-01-30
  • 2021-12-28
  • 2022-02-06
  • 2021-07-08
  • 2022-12-23
  • 2021-11-22
猜你喜欢
  • 2022-02-12
  • 2021-09-18
  • 2022-12-23
  • 2022-12-23
  • 2022-01-15
  • 2022-12-23
相关资源
相似解决方案