py转exe

pip install  pyinstaller
pyinstaller -F -i simo.ico test.py
#外部传参
sys.argv[1]
test.exe  args1