Last active
December 6, 2023 13:16
-
-
Save xyuanmu/374a3dc8eb63b11aeecbb185f5f6b43d to your computer and use it in GitHub Desktop.
解压QQ输入法皮肤,网上获得的方法,皮肤命名为 qq.qpys 然后放入相同目录,运行后生成 zip 文件可用压缩软件打开
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
:do | |
if exist "%~f1" ( | |
"D:\Program Files\Python3\python.exe" "%~n0.py" "%~f1" | |
) else ( | |
"D:\Program Files\Python3\python.exe" "%~n0.py" | |
pause | |
call :do | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 解压QQ输入法皮肤 | |
import sys | |
import zlib | |
if len(sys.argv) > 1: | |
name = sys.argv[1].split('\\')[-1] | |
else: | |
name = 'qq.qpys' | |
with open(f'{name}','rb') as skin: | |
data = skin.read() | |
data = zlib.decompress(data[12:]) | |
with open(f'{name}.zip', 'wb') as file: | |
file.write(data[276:]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment