51Testing软件测试论坛

 找回密码
 (注-册)加入51Testing

QQ登录

只需一步,快速开始

微信登录,快人一步

查看: 1981|回复: 2
打印 上一主题 下一主题

[python] 对于 email.header.Header()这个类的理解有一点疑问,求大佬指教。

[复制链接]

该用户从未签到

1#
发表于 2018-2-2 17:08:57 | 显示全部楼层
email的 header构造方法,根据官网的描述:“The maximum line length can be specified
explicitly via maxlinelen. For splitting the first line to a shorter value (to account for the
field header which isn’t included in s, e.g. Subject) pass in the name of the field in
 header_name. The default maxlinelen is 76, and the default value for header_name
 is None, meaning it is not taken into account for the first line of a long, split header.
应该是在指定 header_name的前提下,限定当前字段(field)值的最大长度,默认长度
限制为76个 ASCII 字符长,通常是用在限制 Subject 的最大长度。
回复 支持 反对

使用道具 举报

本版积分规则

关闭

站长推荐上一条 /1 下一条

小黑屋|手机版|Archiver|51Testing软件测试网 ( 沪ICP备05003035号 关于我们

GMT+8, 2024-5-10 00:47 , Processed in 0.065509 second(s), 21 queries .

Powered by Discuz! X3.2

© 2001-2024 Comsenz Inc.

快速回复 返回顶部 返回列表