+ 2
What is bytes code in python?🤔
5 Respostas
+ 4
This is also not just unique to Python, this is how codes are executed.
+ 3
Byte code is what your python program gets converted to, before it's run by the PVM
+ 2
As Prometheus pointed out, this is not unique to Python. Your source is compiled into this intermediate “byte” code. It is not directly executable by any computer. Instead, a run-time Python virtual machine reads the byte code and executes what it indicates should be done. In theory (and only in theory) it should be possible to run the byte code assembled on a Linux computer on an Android phone if the phone has a PVM. The reason this does not work in the real world is because eventually operating system functions or I/O functions get called and Linux and Android will handle things a bit differently.
+ 2
To see the bytecode you can import the dis module
https://code.sololearn.com/cPu9bzYPHLHU/?ref=app
0
Хвхы тупые пендосы