Self-taught (systematic) Python for so long, want to get a job? A few simple projects will let you pass the interview!

I have been engaged in Python development for many years, proficient in crawlers, web, and familiar with other directions. Many friends privately chatted with me and said, I have learned after reading your article, but I am still not very familiar with the project. How to quickly master a few Small projects, and several projects that can be interviewed. Everyone is welcome to subscribe to the official account: Python goes from programmer to programmer , or harassing me. 154725.1666, you can get a chance to answer questions.

Python is a relatively complete development language, which can be used for both verification models and landing projects, so it is no problem to use Python to write large-scale projects. Moreover, as one of the three traditional solutions for web development, Python also has many classic solutions in the field of web development, so Python is not only no problem for large-scale projects, but also has many successful cases.

As someone who has been working for a few years to answer the question, just answer a few examples from the actual work application. In fact, at work, it is mainly related to data processing, improving work efficiency, and also solving problems that cannot be solved by office software such as excel.

python send email

How to send data to the hands of the business side is a problem we encountered

One day, the business side suddenly told us to remind them regularly every day, what to remind, abnormal orders are sent to the relevant business leaders in different provinces. To be honest, there is actually a bit of resistance. The data platform has prepared them for them in the form of products. Now they need to send emails. There is no way. At this time, it is time for Python to come into play. Using the characteristics of the Python language, a function is written, and then it is called directly when it needs to be applied in other occasions. In this way, if you need to send emails in the future, you need to write the same function again, and you can use it directly.

An example of python's implementation of automatically sending emails to multiple people, group sending, and multiple attachments

Several main problems will be encountered:

1、smtplib.SMTPAuthenticationError: (550, b'User has no permission')

2、smtplib.SMTPAuthenticationError: (535, b'Error: authentication failed')

这两个错误是你的密码用的不是授权码导致,授权码生成自行百度。

3、554 DT:SPM 163 smtp5

这属于网易邮箱的一个退回检测机制导致,貌似跟发送比较频繁有关,我再发送的时候有遇到过,直到添加了一个网易邮箱作为收件箱之后才能发送成功,不知道是不是这个原因导致,具体原因未知,如果有人知道请在私信或者评论下告知,谢谢!!

前期准备查看系统上python版本号:

显示如图表示已经安装好了。

实现代码如下(这是在Windows上的IDEL下编辑测试代码,linux上只有改下附件路径就好了)

在 PyCharm 里面执行结果如下

显示邮件已经发送成功了,可在相应的邮箱里面查看,相应的文件夹下存在附件文本

以上这篇python实现自动发送邮件发送多人、群发、多附件的示例

还有很多可以实现的简单小项目,如果做好可以往以下发展

网站后端程序员:使用Python搭建网站,后台服务会比较容易维护,当需要增加新功能,用Python可以比较容易地实现。但如果使用php,往往需要重写代码,不少知名网站都使用了python开发,比如:

数据分析师:Python能快速开发的特性可以让你迅速验证你的想法,而不是把时间浪费在程序本身上,并且有丰富的第三方库的支持,也能帮你节省时间。

游戏开发者:一般是作为游戏脚本内嵌在游戏中,这样做的好处是既可以利用游戏引擎的高性能,又可以受益于脚本化开发的优点。只需要修改脚本内容,就可以调整游戏内容,不需要重新编译游戏,特别方便。

自动化测试:对于测试来说,要掌握Script的特性,会在设计脚本中有更好的效果。Python是目前比较流行的Script。

网站的开发:借助功能丰富的框架django,flask,丰富的设计模板bootstrap,你可以快速搭建自己的网站,还可以做到移动端自适应。

用爬虫实现数据挖掘,批量处理:爬虫的本质是模仿人去获取网页数据,当你需要获取大批量数据,或是不停的获取的时候,Pytho可以快速做到,减少你的重复劳动时间。比如:微博私信机器人、批量下载美剧、运行投资策略、刷便宜机票、爬合适房源、系统管理员的脚本任务等等。

再包装其他语言的程序:Python又叫做胶水语言,因为他可以用混合编译的方式用c/c++/java等等语言的库。另外,树莓派作为微型电脑,也使用了Python作为主要开发语言。

两张图告诉你Python的特点:


Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326345076&siteId=291194637