![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
python三方库
0o一人情
这个作者很懒,什么都没留下…
展开
-
zipfile压缩
import zipfiledef zipDir(dirpath,outFULLName): zip=zipfile.ZipFile(outFULLName,'w',zipfile.ZIP_DEFLATED) for path,dirnames,filenames in os.walk(dirpath): fpath=path.replace(dirpath,"") for filename in filenames: zip.wri原创 2021-04-26 14:08:29 · 2367 阅读 · 0 评论 -
yagmail—邮件发送
import yagmail# 连接邮箱服务器email = yagmail.SMTP(user="1584807779@qq.com", password="slycewbmwqzrfhbj", host="smtp.qq.com",# smtp服务器,每个邮箱各不相同,请自行百度 port=465)# 服务器端口,自行百度# 发送一份简单的邮件email.send(t.原创 2021-04-14 00:17:55 · 507 阅读 · 1 评论