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.
脚本语言如何使用解释器,因为我使用过 Unity 3D 并在其中制作了 C# 脚本,但它首先是编译的。请解释。
脚本需要先编译成机器码才能使用。您的计算机不会读取您编写的代码,而是将其转换为您的处理器可以理解的语言(二进制)。这也将确保您的代码在运行时之前没有问题(除非合乎逻辑)。我建议阅读一些编程基础知识。这是一个链接,它很好地解释了编译时间和运行时之间的区别