主页
Python
Python imghdr 模块
demo_ref_module_imghdr_basic
运行 ❯
×
更改方向
保存代码
更改主题
import imghdr png_header = b"\x89PNG\r\n\x1a\n" + b"0"*24 print(imghdr.what(None, png_header))
png
DeprecationWarning: 'imghdr' is deprecated and slated for removal in Python 3.13