Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Python 虚拟机对于不同的操作系统是不同的,但字节码是可移植的。我的意思是,为什么首先要设计字节码?如果 Python 的代码直接在本机机器上运行,它会不会快得多?
是的,它会更快,但正如您所提到的,字节码用于可移植性。任何可以运行虚拟机的东西都可以运行 Python 程序,无需重新编译代码