First day of contact with Python

Source: Internet
Author: User
Tags sublime text

first day of contact with Python

A person to learn, always than the team to pay more time to learn, but there is always a way, it is necessary to go.

Advantages of 1.Python

The pros of the video above are: high-level language, object-oriented, extensible, portable, grammatically clear, easy to maintain, and efficient prototypes.

>>>import this

The Zen of Python, by Tim Peters

Beautiful is better than ugly.
Explicit is better than implicit.
Simple is better than complex.
Complex is better than complicated.
Flat is better than nested.
Sparse is better than dense.
readability counts.
Special cases aren ' t special enough to break the rules.
Although practicality beats purity.
Errors should never pass silently.
unless explicitly silenced.
in the face of ambiguity, refuse the temptation to guess.
there should is one--and preferably only one--obvious the-do it.
Although that is obvious at first unless you ' re Dutch.
Now is better than never.
Although never is often better than *right* now.
If The implementation is hard to explain, it's a bad idea.
If The implementation is easy to explain, it could be a good idea.
namespaces is one honking great idea – let's do more than those!

//

Tim Peters of "Zen"

beauty is better than ugliness.
It is better to be direct than implicit.
simplicity is better than complexity.
complexity is better than complication.
tiling is better than nesting.
sparse than dense to be good.
readability is important.
exceptions cannot break the rules.
practicality is more important than correctness.
mistakes can never be passed quietly.
unless it is clear to him to be quiet.
refusal to guess in the vague place.
there should be one--preferably only one--the obvious way.
Although this method is not obvious at first, unless you are a Dutch person.
now is better than never
though it's never always better than it is now.
if the implementation is difficult to explain, it is a bad idea.
if the implementation is easy to explain, it might be a good idea.
namespaces are a good idea-let's do more!

//

What can 2.Python do?

· Scientific calculations

· Graphical development

· System scripts

· Web Server

· Web crawler

· server cluster automation operation and maintenance

For each content you learn, remember to summarize it independently and bring the link.

3. Development environment and construction under the WINDOWS10

Because I am not a big God, so please small partners to give up the intention to refer to my study experience, must follow the network above the great God, or video teacher building method.

(1) First, please download the Python version you are currently learning from the Python website-https://www.python.org/getit/

(2) Start configuring environment variables after installation

Environment variables, advanced system settings, properties, My Computer

Add your python installation directory at the back of path, and the Scripts folder, like mine is C:\Python27; C:\Python27\Scripts  

After the configuration is complete, open cmdand run python

(3) A perpetual first Hello World

Enter print directly above ("Hello World");

(4) Use of the Python IDE

I use sublime text3, for what, because good-looking ah HHH 2333.

Isn't that pretty, 233333.

If you want to download it yourself, another article about sublime text 3 's Python IDE is built.

First day of contact with 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.