文件格式
********

本章中描述的模块解析各种不是标记语言且与电子邮件无关的杂项文件格式。

* "csv" --- CSV 文件读写

  * 模块内容

    * "reader()"

    * "writer()"

    * "register_dialect()"

    * "unregister_dialect()"

    * "get_dialect()"

    * "list_dialects()"

    * "field_size_limit()"

    * "DictReader"

    * "DictWriter"

    * "Dialect"

    * "excel"

    * "excel_tab"

    * "unix_dialect"

    * "Sniffer"

      * "sniff()"

      * "has_header()"

    * "QUOTE_ALL"

    * "QUOTE_MINIMAL"

    * "QUOTE_NONNUMERIC"

    * "QUOTE_NONE"

    * "QUOTE_NOTNULL"

    * "QUOTE_STRINGS"

    * "Error"

  * 变种与格式参数

    * "delimiter"

    * "doublequote"

    * "escapechar"

    * "lineterminator"

    * "quotechar"

    * "quoting"

    * "skipinitialspace"

    * "strict"

  * Reader 对象

    * "__next__()"

    * "dialect"

    * "line_num"

    * "fieldnames"

  * Writer 对象

    * "writerow()"

    * "writerows()"

    * "dialect"

    * "writeheader()"

  * 例子

* "configparser" --- 配置文件解析器

  * 快速起步

  * 支持的数据类型

  * 回退值

  * 受支持的 INI 文件结构

  * 未命名小节

  * 值的插值

    * "BasicInterpolation"

    * "ExtendedInterpolation"

  * 映射协议访问

  * 定制解析器行为

    * "BOOLEAN_STATES"

    * "SECTCRE"

  * 旧式 API 示例

  * ConfigParser 对象

    * "ConfigParser"

      * "defaults()"

      * "sections()"

      * "add_section()"

      * "has_section()"

      * "options()"

      * "has_option()"

      * "read()"

      * "read_file()"

      * "read_string()"

      * "read_dict()"

      * "get()"

      * "getint()"

      * "getfloat()"

      * "getboolean()"

      * "items()"

      * "set()"

      * "write()"

      * "remove_option()"

      * "remove_section()"

      * "optionxform()"

    * "UNNAMED_SECTION"

    * "MAX_INTERPOLATION_DEPTH"

  * RawConfigParser 对象

    * "RawConfigParser"

      * "add_section()"

      * "set()"

  * 异常

    * "Error"

    * "NoSectionError"

    * "DuplicateSectionError"

    * "DuplicateOptionError"

    * "NoOptionError"

    * "InterpolationError"

    * "InterpolationDepthError"

    * "InterpolationMissingOptionError"

    * "InterpolationSyntaxError"

    * "MissingSectionHeaderError"

    * "ParsingError"

    * "MultilineContinuationError"

    * "UnnamedSectionDisabledError"

* "tomllib" --- 解析 TOML 文件

  * "load()"

  * "loads()"

  * "TOMLDecodeError"

    * "msg"

    * "doc"

    * "pos"

    * "lineno"

    * "colno"

  * 例子

  * 转换表

* "netrc" --- netrc 文件处理

  * "netrc"

  * "NetrcParseError"

    * "msg"

    * "filename"

    * "lineno"

  * netrc 对象

    * "authenticators()"

    * "__repr__()"

    * "hosts"

    * "macros"

* "plistlib" --- 生成与解析 Apple ".plist" 文件

  * "load()"

  * "loads()"

  * "dump()"

  * "dumps()"

  * "UID"

  * "FMT_XML"

  * "FMT_BINARY"

  * 例子
