在cx_freeze设置功能中,名称,版本和描述关键字实际上是做什么的?

问题描述

当我使用cx_freeze冻结代码时,通常会在setup函数中包含name,version和description关键字参数,因为这是在文档示例中所做的。但是我无法弄清楚这些关键字参数实际上如何影响设置脚本的输出。如果我忽略或忽略这些关键字参数,是否会引起任何问题?以下是文档中的示例代码供参考。

import sys
from cx_Freeze import setup,Executable

# Dependencies are automatically detected,but it might need fine tuning.
build_exe_options = {"packages": ["os"],"excludes": ["tkinter"]}

# GUI applications require a different base on Windows (the default is for a
# console application).
base = None
if sys.platform == "win32":
    base = "win32gui"

setup(  name = "guifoo",version = "0.1",description = "My GUI application!",options = {"build_exe": build_exe_options},executables = [Executable("guifoo.py",base=base)])

解决方法

嘿,亲爱的名字是输出.exe(应用程序)的名称,描述是您制作的应用程序的描述,该描述将在任务管理器中显示为任务(应用程序)的名称,最后,版本就是您的应用程序的版本。 谢谢