代码库初始化

This commit is contained in:
Giao committed 2026-10-04 21:07:49 +08:00
1 parent 07786ab323
commit 4334694551
851 files changed
+42626

No files matched your search

+8
View File
@@ -0,0 +1,8 @@
# -*- coding: utf-8 -*-
import struct
src = r"c:\Users\30272\.trae-cn\attachments\6abd5dab88c975032f77b873\45664c29-17cf-4473-8de0-b4f99b618bb9_8d157aea-2a26-4cb5-8f07-a59b4c212fa5_Jianbing.png"
with open(src, "rb") as f:
head = f.read(16)
print("magic hex:", head[:16].hex())
print("signature:", head[:8])
# PNG: 89504e470d0a1a0a WEBP: 52494646....57454250 JPEG: ffd8ff GIF: 47494638