pyinstaller -F tools2.py --noconsole
或者pyinstaller -F -w example.py
直接打包:
pyinstaller -F -w example.py