A few Python small cases, fall in love with Python programming!

Source: Internet
Author: User

Python is an object-oriented, interpretive programming language, with the source code and interpreter CPython adhering to the GPL, and the Python syntax is concise and clear.

The syntax is concise and clear, so what are some interesting things we can do with a small amount of Python code?

First, painting love Confession

1, the graph is composed of a series of points (x, y) of the curve, because X, y satisfies a certain relationship, so we can build a model, set up expressions expression, when satisfied, two for loop (for X in Range;for Y in range) will be printed per row per column.

2. Python Code and comments:

A line of code to clarify the idea of implementation:

It looks like three rows, and writing a line of Python code in the IDE can be done,

This diagram is a static diagram, the effect is not satisfactory, then we make it into a dynamic diagram and to achieve the text of the confession? (You can change the letter content yourself)

The code after the change is as follows:

Second, the Python crawler entry-level tutorial image crawl

1, many because of interest and learn Python most of the friends are to see others crawl video, pictures it, I have seen others crawl small films, I have a kinetic

2. Python Code:

3.

Third, Buddha Town Building

The code is a little bit ... But the effect came out. In the same vein, you can draw other graphics, which requires your own imagination.

Four, Piglet Paige

Example:

Source:

Python has a lot of fun to play, at the beginning of the study, you can learn from the big anecdotes of these small cases to start, will bring curiosity.

Finally share a little python poison chicken soup:

1, do not have the skills, either take the time to buy, or spend money to buy.

2, do not stop, the update of skills is also very fast.

3, book + video + Time + combat + teacher Answer = high salary python

I have a public number, and I often share some of the stuff about Python technology. If you like my share, you can use the search "Python language learning" to follow

Welcome to join thousands of people to exchange questions and answers skirt: 699+749+852

A few Python small cases, fall in love with Python programming!

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.