✏️ 编辑:imghdr.cpython-39.pyc
路径:
/usr/lib64/python3.9/__pycache__/imghdr.cpython-39.pyc
大小:4.04 KB · 修改:2026-08-12 15:51:23 · 权限:0644 · 只读(保存会失败)
← 返回目录
👁 查看
⬇ 下载
检测到二进制内容,直接保存可能损坏文件。请改用「上传替换」。
a �i� � @ s2 d Z ddlmZ dgZd%dd�Zg Zdd� Ze�e� dd � Ze�e� d d� Z e�e � dd � Z e�e � dd� Ze�e� dd� Ze�e� dd� Z e�e � dd� Ze�e� dd� Ze�e� dd� Ze�e� dd� Ze�e� dd� Ze�e� dd� Ze�e� d d!� Zd"d#� Zed$k�r.e� dS )&z<Recognize image file formats based on their first few bytes.� )�PathLike�whatNc C s� d }z�|d u rNt | ttf�r2t| d�}|�d�}n| �� }| �d�}| �|� tD ](}|||�}|rR| W |rx|�� S qRW |r�|�� n|r�|�� 0 d S )N�rb� ) � isinstance�strr �open�read�tell�seek�tests�close)�file�h�f�locationZtf�res� r �/usr/lib64/python3.9/imghdr.pyr s"