email.py 文件源码

python
阅读 24 收藏 0 点赞 0 评论 0

项目:core 作者: IntelligentTrading 项目源码 文件源码
def email_to_string(e):
    # type: (EmailMessage) -> str
    def n(x):
        x or 'Not specified'

    return """
From: {}
To: {}
Subject: {}
Reply-To: {}
CC: {}
BCC: {}
Body: {}
Attachments: {}
""".format(
        n(e.from_email),
        n(e.to),
        n(e.subject),
        n(e.reply_to), n(e.cc), n(e.bcc), n(e.body), n(str(e.attachments)))
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号