Self-study (systematics) Python for so long, want to get employed? A few simple small items to get you through the interview!

Source: Internet
Author: User

I have been engaged in Python development for many years, proficient in reptiles, the web, familiar with other directions, a lot of small partners private chat I said, I read your article, I studied, but for the project this piece is not very familiar with, how to quickly master a few small projects, as well as several can interview the project. Please subscribe to the public number:python from program ape to programmer,,, or harass myself. 154725.1666, you can get a chance to answer questions.

Python is a sophisticated development language that can do both validation and landing projects, so Python is no problem in writing large projects. And Python, as one of the three traditional solutions for web development, has a lot of classic solutions in web development, so Python does a large project without problems and has many success stories.

As a person who has worked for several years to answer questions, answer them from a few examples applied in practical work. In fact, in the work is mainly related to data processing work, improve work efficiency, but also to solve such as Excel office software can not solve the problem.

Python e-mail

How the data is sent to the business side is a problem we encounter

One day, all of a sudden the business party told us to remind them regularly every day, to mention what woke up, abnormal orders from the provinces sent to the relevant business owner hands. To tell the truth, in fact a little resistance, the data platform on the form of products to them to do, now need to send mail, no way, there is demand to meet. This is the time for Python to play, using the Python language feature, writing a function, and then calling it directly when it needs to be applied in other situations. In this way, it is necessary to write the same function after encountering the need to send an e-mail, and use it directly.

Python enables automatic e-mail sending of multi-person, mass, multi-attachment examples

There are several major issues that you will encounter:

1, Smtplib. Smtpauthenticationerror: (550, B ' User has no permission ')

2, Smtplib. Smtpauthenticationerror: (535, B ' error:authentication failed ')

These two errors are your password is not caused by the authorization code, the authorization code generated by self-Baidu.

3, 554 DT:SPM 163 SMTP5

This belongs to NetEase mailbox A return detection mechanism, seemingly with the sending more frequent related, I send again when have encountered, until added a NetEase mailbox as Inbox to send success, do not know whether this cause, specific reasons unknown, if someone knows please in private message or comments under the notice, thank you!!

Prepare to view the Python version number on the system:

The display indicates that the installation is ready.

The implementation code is as follows (this is to edit the test code under Idel on Windows, just change the attachment path on Linux)

In Pycharm, the results are as follows:

Show the message has been sent successfully, can be viewed in the corresponding mailbox, the corresponding folder exists under the attachment text

The above Python implementation of automatic e-mail send multi-person, mass, multi-attachment example

There are a lot of simple small projects that can be implemented, and if you do, you can go to the following

website backend programmer : Using Python to build a website, background services will be easier to maintain, when the need to add new features, Python can be more easily implemented. However, if you use PHP, you often need to rewrite the code, many well-known sites have used Python development, such as:

Data analyst : Python's ability to quickly develop features allows you to quickly validate your ideas, rather than wasting time on the program itself, and with the support of a rich third-party library, it can also save you time.

game developer : typically embedded in the game as a game script, the benefit is that you can take advantage of the high performance of the game engine and benefit from scripted development. Just modify the script content, you can adjust the game content, do not need to recompile the game, especially convenient.

Automated Testing : For testing, mastering the features of script will have a better effect in the design script. Python is currently the most popular script.

website Development : With the help of the rich framework Django,flask, rich design template bootstrap, you can quickly build your own website, you can also do mobile-based adaptive.

data mining with crawlers, batch processing: The nature of the crawler is to imitate people to obtain web data, when you need to obtain a large amount of data, or keep getting, pytho can quickly do, reduce your repetitive work time. For example: micro-blog private messages robot, batch download American opera, run investment strategy, swipe cheap tickets, crawl suitable listings, system administrator's script tasks and so on.

Packaging Other Languages : Python is also known as glue language, because he can use a mixed compilation of C/c++/java and other language libraries. In addition, the Raspberry Pi as a micro computer, also used Python as the main development language.

Two graphs tell you the characteristics of Python:


Self-study (systematics) Python for so long, want to get employed? A few simple small items to get you through the interview!

Related Article

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.