如何使用模块从另一个PY文件中编译PY文件? (因此不是CMD)
我想制作一个代码(我将调用 compiler.py ),它将在不使用CMD命令的情况下编译我需要的任何PY文件我的编译器在其他 设备)。
以下是一些代码的示例,可以说明我的要求: 这是compiler.py的样子: compiler.py.py
这是RandomProgramm.py: RandomProgramm.py
关于如何进行的任何想法?
I want to make a code (that I'll call compiler.py), that'll compile any py file I need without using cmd commands, only modules(Things that are compilable So I can still Use my compiler on other
devices).
Here are some examples of code to illustrate what I am asking for:
Here is how compiler.py would look like :
compiler.py
And this is randomprogramm.py :
randomprogramm.py
Any Idea on how to proceed ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论