Bash and Python

Source: Internet
Author: User
The basic components of Linux, which are thoroughly tempered. There are very few that have been replaced. These basic components include a variety of shells.

Python is started for operations. Later developed into a common language. Python solves the problem of programming difficult tools such as the shell, while being poorly readable. Of course, there are many design ideas, not listed. But Python's goal in the beginning is not to replace the shell.

But Ruby has this idea. Some of Ruby's tools obviously want to replace the application's console. It's an ideal language.

As a programming language, not as a command-line tool. Python does not have the advantages of strong interaction with the shell, versatility, compactness, privilege management, batch processing, complex piping, security, efficiency, etc.

However, many of the shell-supported scripts have been replaced by Python. Therefore, in Linux system initialization, operations management can see a large number of Python script. For a Python veteran, using shell scripting is not as straightforward as writing a Python script. There is absolutely no need to learn two sets of programming methods.

It took me 10几 years to Python to write a shell script with more than 50 lines. Python is enough. Occasionally, a more than 10-line shell is more commonly used. More python will be used.



Similarly, if we write an operating system in Python, it's clear that the shell doesn't need
Http://zhidao.baidu.com/link?url=UMAcc4iqq3QSsGc41Ga80gAebMgH6p_PrKjpxTrzUuALRto6sKJx4_ 6pohcxt0psycoytpkczd2cerixxmitoqnkdiis0i1-cza8sw7qe7w

Bash and Python

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.