标签:chm html xxx text ext 定位 show pat 授权
import zmail
server = zmail.server(‘xxxx@qq.com‘,‘授权码‘)
mail = server.get_latest()
# zmail.show(mail)
print(mail[‘subject‘])
# print(mail[‘id‘])
# print(mail[‘from‘])
# print(mail[‘to‘])
# print(mail[‘content_text‘])
# print(mail[‘content_html‘])
zmail.save_attachment(mail,target_path=r‘C:\Users\13375\Desktop\python‘,overwrite=True) #保存附件到指定位置
标签:chm html xxx text ext 定位 show pat 授权
原文地址:https://www.cnblogs.com/tomhu/p/12343112.html