如何编写主python脚本来集成多个py文件

问题描述 投票:0回答:1

最初我这样执行......

pyinstaller - - onefile a.py b。 py c。 PY

我想要做的是写一个主脚本文件,例如:main.py,我通过它执行这样的..

pyinstaller - - onefile main.py

主脚本文件必须包含上面列出的所有py文件。

帮我解决TIA

python pyinstaller
1个回答
0
投票

卖弄.朋友:

import a
import b
import c

然后就是

> pyinstaller main.py
© www.soinside.com 2019 - 2024. All rights reserved.