What is the script (language)

Script (Script) is an extension of the batch file, is stored in a pure textual program, a computer script is generally a series combination of the control computer performs arithmetic operation to determine the operation, which may be implemented in certain logic branches and so on. (From Baidu)

One well-known scripting language python, JavaScript

In my understanding it seems python interpreter is installed in the system's various python: Built-in python, brew python, conda python in general usr / bin folder there will be soft at the python2 python3

For JavaScript, I think the most important applications or browsing the web. At this time, the system default browser has become such a scripting language interpreter.

shell script is a special script, in my opinion is a set of shell commands (distinguished from the core) is. At this time a variety of shell (bash, zbash, etc.) became the script interpreter.

Here is a shell script examples:

#! / bin / bash
 echo  " the Hello World! "   # This is a statement

The first line 1 #!is an agreed mark, which tells the system what the script requires an interpreter to perform that which Shell use; the latter /bin/bashis to indicate the specific location of the interpreter.

A python file recent head contact also the case:

#!/usr/bin/python3 
"""Our own little animal farm."""

In python, in addition to the file header #! # Sign behind all the action indicates a comment line.

 

Guess you like

Origin www.cnblogs.com/chester-cs/p/11259971.html