내 연락처 정보
우편메소피아@프로톤메일.com
2024-07-12
한어Русский языкEnglishFrançaisIndonesianSanskrit日本語DeutschPortuguêsΕλληνικάespañolItalianoSuomalainenLatina
cxfreeze의 원칙은 Python 프로그램과 해당 종속 모듈, 라이브러리, 리소스 파일 등을 실행 파일로 패키징하는 것입니다. 패키징 프로세스 중에 cxfreeze는 Python 인터프리터와 프로그램 코드는 물론 프로그램이 의존하는 모듈, 라이브러리, 리소스 파일 등을 함께 패키징합니다. 프로그램이 실행 중일 때 cxfreeze는 이러한 파일의 압축을 풀고 압축이 풀린 폴더에서 프로그램을 실행합니다.
pip install cx_Freeze
其实主要就是将executables里换成你的主函数入口
from cx_Freeze import setup, Executable
setup(
name="flooring",
version="1.0",
description="flooring exe",
executables=[Executable("my_windows.py")]
)
python setup.py build