用这个命令生成的可执行文件,运行会多出一个命令窗口 pyinstaller --console --onefile jingyan_frame.py 改成用这个命令就不会 pyinstaller -F -w main.py