官术网_书友最值得收藏!

About Python – compiled or interpreted

Compilers work by converting human-readable code written in high-level programming languages into machine code, which is then run by the underlying architecture or machine. If you don't wish to run the code, the compiled version can be saved and executed later on. It should be noted that the compiler first checks for syntax errors and only creates the compiled version of the program if none are found. If you have used C, you might have come across .out files, which are examples of compiled files.

In the case of interpreters, however, each line of the program is taken and interpreted from the source code at runtime and then converted into machine code for execution. Python falls into the category of interpreted byte code. This means that the Python code is first translated to an intermediate byte code (a .pyc file). Then, this byte code is interpreted line by line by the interpreter and executed on the underlying architecture.

主站蜘蛛池模板: 资阳市| 阿坝县| 峡江县| 盐源县| 黔西| 高碑店市| 图片| 集贤县| 台南县| 康马县| 呈贡县| 龙井市| 皋兰县| 娄底市| 和硕县| 奉新县| 吴川市| 阜新市| 襄垣县| 茌平县| 临颍县| 奇台县| 白水县| 康乐县| 博乐市| 清涧县| 贺兰县| 宣武区| 衡东县| 姜堰市| 富民县| 凤翔县| 综艺| 施甸县| 佛教| 阿合奇县| 台中县| 盐山县| 晋中市| 定西市| 达日县|