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

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.

主站蜘蛛池模板: 柞水县| 拜城县| 贵阳市| 和平区| 磐石市| 禹州市| 万荣县| 恭城| 神木县| 双流县| 三明市| 北辰区| 九江县| 区。| 光山县| 江孜县| 焦作市| 读书| 成都市| 镇雄县| 赣州市| 新宁县| 明水县| 彭山县| 区。| 榕江县| 柏乡县| 芜湖县| 钦州市| 湟源县| 乐至县| 宾阳县| 吉木萨尔县| 获嘉县| 莱西市| 安化县| 竹溪县| 延津县| 满洲里市| 连城县| 福建省|