Basically, all scripting languages are programming languages. The
theoretical difference between the two is that scripting languages do
not require the compilation step and are rather interpreted. For
example, normally, a C program needs to be compiled before running
whereas normally, a scripting language like JavaScript or PHP need not
be compiled.
脚本语言的应用程序:使程序中的某些任务自动化
从数据集中提取信息
与传统编程语言相比,代码密集度更低
编程语言的应用程序:它们通常在父程序中运行,如脚本
将代码与数学模型集成时更加兼容
像JAVA这样的语言可以编译,然后在任何平台上使用A scripting language generally sits behind some programming language.
Scripting languages generally have less access to the computer’s
native abilities since they only run on a subset of the programming
language.Scripting languages are generally slower than programming
languages.Just because something is interpreted doesn't mean it's a scripting
language -- after all, Python can be compiled. And standard Python
compiles Python code into bytecode and interprets that, just like
Java. But you never see Java called a "scripting language." Also,
there are C interpreters out there. If anyone cares to put in the
effort, any language can be either compiled or interpreted.
结论Python is considered a scripting language because of a historical blur
between scripting languages and general purpose programming languages.
In fact, Python is not a scripting language, but a general purpose
programming language that also works nicely as a scripting language.