python脚本打包成.exe可执行文件
This article provides a guide for packaging Python scripts into standalone executable files using PyInstaller. It covers how to install the tool, create a script with functions to detect duplicate files, and package the script into a .exe file. The process is ideal for distributing and running Python applications on Windows platforms.
图片批量转webp
The article discusses the process of converting images to WebP format using Python, addressing the limitations of online tools such as speed and convenience. It provides a Python script that bulk converts images from PNG, JPG, and JPEG to WebP format, suitable for high-quality image display. The code creates an output directory, iterates through source images, and saves each file as a WebP, ensuring efficient and user-friendly conversion.