Python is a cross-platform, free and open source computer programming language. It is an object-oriented dynamic type language. It was originally designed to write automated scripts (shell). With the continuous update of the version and the addition of new language features, it is increasingly used for the development of independent and large-scale projects.
Support common mainstream platforms, such as AIX, HPUX, Solaris, Linux, Windows, etc. Except for Windows, common Unix and Linux platforms all have native Python, but the version is generally lower. Regarding cross-platform and other cross-platform languages, it should be noted that some individual modules are unique to a single platform, and the overall cross-platform performance is still very good. It is not necessary to write multiple sets of codes to adapt to multiple platforms.
But this is not to say that there are no restrictions at all: first, the same version of the intermediate files .py and .pyc and .pyo are cross-platform; secondly, PCs and mobile terminals, such as mobile phones and Pads, cannot be cross-platform (for reasons see next ); Finally, it cannot cross processor architectures, such as Intel and ARM, 64-bit and 32-bit.
Knowledge point expansion:
Pyc and pyo of the same bai version number of python are also cross-platform. Of course, it cannot be crossed from duPC to Zhi mobile phone. It also cannot cross from intel to arm, and cannot cross from 64-bit to 32-bit.
To be honest, the ability of java across Dao platforms is also limited, there are various traps, and sometimes cross-platform code cannot be used. But relatively better than python. Except for j2me.
As an engineering language, java is far more capable of doing some medium and large projects than python. However, the development speed of python for small and medium-sized projects is far from that of java.
Generally, java is faster than python. Except python calls C extensions.
In terms of cross-platform, Java cross-platform seems to be taken for granted. So when python is cross-platform, it often surprises you. That's about it.
So far, this article about python is a cross-platform language code is introduced. For more related python cross-platform content, please search for ZaLou.Cn's previous articles or continue to browse the related articles below. Hope you will support ZaLou.Cn more in the future. !
Recommended Posts