Visitar URL original
GitHub - jay-chuang/Get-data-from-database-and-send-it-by-mail · GitHub
Skip to content

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

4 Commits

Folders and files

Repository files navigation

刚入门python,发现确实是一个不错的语言。

业务部门要求将将某一个数据库中的表,定期发送到相关部门人员邮箱。

其实整个业务需求很简单,实现起来也不难。

但是由于刚入门python,所以还是借鉴了不上网上的内容,也得到了许多群友的提醒。

业务部门使用的是Postgresql数据库,所以使用 了psyconpg2的模块。

整个脚本分为三部分:

1.数据库的连接及数据写入excel表中(整个对新手来说,应该是难点)

2.邮件的发送

3.生成excel文件的删除

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors