gpt4 book ai didi

scripting - 脚本和程序之间的区别?

转载 作者:行者123 更新时间:2023-12-03 05:24:00 27 4
gpt4 key购买 nike

脚本和程序有什么区别?大多数时候我听到一个脚本正在运行,那不是一个程序吗?我有点困惑,谁能详细说明一下吗?

最佳答案

对我来说,主要区别在于脚本被解释,而程序被执行(即首先编译源代码,然后编译结果预计会进行编译)


维基百科似乎同意我的观点:

Script :

"Scripts" are distinct from the core code of the application, which is usually written in a different language, and are often created or at least modified by the end-user.
Scripts are often interpreted from source code or bytecode, whereas the applications they control are traditionally compiled to native machine code.

Program :

The program has an executable form that the computer can use directly to execute the instructions.
The same program in its human-readable source code form, from which executable programs are derived (e.g., compiled)

关于scripting - 脚本和程序之间的区别?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2286552/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com