Home  >  Article  >  Backend Development  >  Is python platform dependent?

Is python platform dependent?

angryTom
angryTomOriginal
2020-02-05 10:35:373752browse

Is python platform dependent?

Is Python related to the platform?

Python has nothing to do with the platform, because Python is a cross-platform language, Python as The scripting language is interpreted and executed, so it can be cross-platform. The premise is that there must be a corresponding interpreter.

Python knowledge supplement

Python is a cross-platform computer programming language. It is an object-oriented dynamic type language that was originally designed for writing automated scripts (shells). As the version is constantly updated and new language features are added, it is increasingly used for the development of independent, large-scale projects.

When Python is executed, it will first compile the source code in the .py file into Python byte code (bytecode), and then the Python Virtual Machine (Python virtual machine) will execute these compiled byte code. The basic idea of ​​this mechanism is consistent with Java and .NET.

Python can also be run in interactive mode. For example, mainstream operating systems Unix/Linux, Mac, and Windows can run the Python interactive environment directly in command mode. Interactive operations can be achieved by directly issuing operating instructions.

Python will preprocess common code files into binary files, but this cannot be counted as compilation in that sense, because this binary file is not executable, it is just a Things similar to caching

Manypython training videos are all available on the python learning website. Welcome to learn online!

The above is the detailed content of Is python platform dependent?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn