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

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.

主站蜘蛛池模板: 延安市| 樟树市| 宝丰县| 大兴区| 永靖县| 青铜峡市| 米林县| 宜阳县| 会泽县| 濮阳县| 凤城市| 巴东县| 浙江省| 隆林| 红原县| 长治县| 桂东县| 顺义区| 宜丰县| 上高县| 叙永县| 灵丘县| 青神县| 永胜县| 湘阴县| 清徐县| 武清区| 营山县| 绥化市| 崇阳县| 宜川县| 德令哈市| 礼泉县| 正蓝旗| 沈丘县| 城固县| 崇仁县| 台州市| 聂拉木县| 白城市| 海林市|