emptygif
语言: 简体中文

所有语言和框架

Python one-liner Python

一个用于 Python one-liner 的 Python 代码片段,以空 GIF 响应对 /pixel.gif 的请求,GIF 在启动时只解码一次。

Python one-liner Python

文件
pixel.sh
python3 -c "import base64, pathlib; pathlib.Path('pixel.gif').write_bytes(base64.b64decode('R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=='))"

我们运行了此代码片段,并比对了它返回的字节。

官方网站: Python one-liner

更多 Python 示例