Python script running method and system
The invention provides a Python script running method and system, and the method comprises the steps: obtaining a to-be-released Python script file, and compiling the to-be-released Python script file through a byte code compiler, so as to obtain a byte code file; packaging a library file, a byte co...
Gespeichert in:
Hauptverfasser: | , , |
---|---|
Format: | Patent |
Sprache: | chi ; eng |
Schlagworte: | |
Online-Zugang: | Volltext bestellen |
Tags: |
Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
|
Zusammenfassung: | The invention provides a Python script running method and system, and the method comprises the steps: obtaining a to-be-released Python script file, and compiling the to-be-released Python script file through a byte code compiler, so as to obtain a byte code file; packaging a library file, a byte code file, a byte code compiler and a program loader in the Python environment to obtain an installation package; when an operation instruction initiated for an installation package is received, releasing the library file, the byte code file, the byte code compiler and the program loader in the installation package; compiling the byte code file into an executable file by utilizing the released byte code compiler; and loading the executable file and the library file by utilizing the released program loader. According to the method, the execution efficiency is improved, and the problem of Python script leakage is solved.
本发明提供的一种Python脚本运行方法及系统,方法包括获取待发布Python脚本文件,利用字节码编译器对待发布Python脚本文件进行编译,以得到字节码文件;将Python环境中的库文件、字节码文 |
---|