python属于编程语言还是脚本语言_Python是语言还是脚本语言?

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.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值