Python 标准库参考指南 2.7.18
本模块还提供了以下常量,适用于读取和写入依赖于平台的文件: codecs.BOM codecs.BOM_BE codecs.BOM_LE codecs.BOM_UTF8 codecs.BOM_UTF16 codecs.BOM_UTF16_BE codecs.BOM_UTF16_LE codecs.BOM_UTF32 codecs.BOM_UTF32_BE 120 Chapter 7. String Services Services The Python Library Reference, 发布 2.7.18 codecs.BOM_UTF32_LE These constants define various encodings of the Unicode byte order mark (BOM) used in UTF-16 and UTF-32 data streams to indicate the Unicode signature. BOM_UTF16 is either BOM_UTF16_BE or BOM_UTF16_LE depending on the platform’s native byte order, BOM is an alias for BOM_UTF16, BOM_LE for BOM_UTF16_LE and BOM_BE for BOM_UTF16_BE. The others0 码力 | 1552 页 | 7.42 MB | 9 月前3Python 标准库参考指南 2.7.18
本模块还提供了以下常量,适用于读取和写入依赖于平台的文件: codecs.BOM codecs.BOM_BE codecs.BOM_LE codecs.BOM_UTF8 codecs.BOM_UTF16 codecs.BOM_UTF16_BE codecs.BOM_UTF16_LE codecs.BOM_UTF32 codecs.BOM_UTF32_BE 120 Chapter 7. String Services Services The Python Library Reference, 发布 2.7.18 codecs.BOM_UTF32_LE These constants define various encodings of the Unicode byte order mark (BOM) used in UTF-16 and UTF-32 data streams to indicate the Unicode signature. BOM_UTF16 is either BOM_UTF16_BE or BOM_UTF16_LE depending on the platform’s native byte order, BOM is an alias for BOM_UTF16, BOM_LE for BOM_UTF16_LE and BOM_BE for BOM_UTF16_BE. The others0 码力 | 1552 页 | 7.42 MB | 9 月前3Python 标准库参考指南 2.7.18
本模块还提供了以下常量,适用于读取和写入依赖于平台的文件: codecs.BOM codecs.BOM_BE codecs.BOM_LE codecs.BOM_UTF8 codecs.BOM_UTF16 codecs.BOM_UTF16_BE codecs.BOM_UTF16_LE codecs.BOM_UTF32 codecs.BOM_UTF32_BE 120 Chapter 7. String Services Services The Python Library Reference, 发布 2.7.18 codecs.BOM_UTF32_LE These constants define various encodings of the Unicode byte order mark (BOM) used in UTF-16 and UTF-32 data streams to indicate the Unicode signature. BOM_UTF16 is either BOM_UTF16_BE or BOM_UTF16_LE depending on the platform’s native byte order, BOM is an alias for BOM_UTF16, BOM_LE for BOM_UTF16_LE and BOM_BE for BOM_UTF16_BE. The others0 码力 | 1552 页 | 7.42 MB | 9 月前3Tornado 6.0 Documentation
detected automatically (among UTF-8 and UTF-16) if the file contains a byte-order marker (BOM), defaulting to UTF-8 if no BOM is present. Example translation es_LA.csv: "I love you","Te amo" "%(name)s liked "singular" Changed in version 4.3: Added encoding parameter. Added support for BOM- based encoding detection, UTF-16, and UTF-8-with-BOM. tornado.locale.load_gettext_translations(directory: str, domain: str) load_translations now accepts encodings other than UTF- 8. UTF-16 and UTF-8 will be detected automatically if a BOM is present; for other encodings load_translations has an encoding parameter. tornado.locks Lock and0 码力 | 869 页 | 692.83 KB | 1 年前3Tornado 6.1 Documentation
detected automatically (among UTF-8 and UTF-16) if the file contains a byte-order marker (BOM), defaulting to UTF-8 if no BOM is present. Example translation es_LA.csv: "I love you","Te amo" "%(name)s liked "singular" Changed in version 4.3: Added encoding parameter. Added support for BOM- based encoding detection, UTF-16, and UTF-8-with-BOM. tornado.locale.load_gettext_translations(directory: str, domain: str) load_translations now accepts encodings other than UTF- 8. UTF-16 and UTF-8 will be detected automatically if a BOM is present; for other encodings load_translations has an encoding parameter. tornado.locks Lock and0 码力 | 931 页 | 708.03 KB | 1 年前3Python 标准库参考指南 3.6.15
codecs.BOM codecs.BOM_BE codecs.BOM_LE 146 Chapter 7. 二进制数据服务 The Python Library Reference, 发布 3.6.15 codecs.BOM_UTF8 codecs.BOM_UTF16 codecs.BOM_UTF16_BE codecs.BOM_UTF16_LE codecs.BOM_UTF32 codecs codecs.BOM_UTF32_BE codecs.BOM_UTF32_LE 这些常量定义了多种字节序列,即一些编码格式的 Unicode 字节顺序标记(BOM)。它们在 UTF-16 和 UTF-32 数据流中被用以指明所使用的字节顺序,并在 UTF-8 中被用作 Unicode 签名。BOM_UTF16 是BOM_UTF16_BE 或BOM_UTF16_LE,具体取决于平台的本机字节顺序,BOM 是BOM_UTF16 是BOM_UTF16 的别名, BOM_LE 是BOM_UTF16_LE 的别名,BOM_BE 是BOM_UTF16_BE 的别名。其他序列则表示 UTF-8 和 UTF-32 编码格式中的 BOM。 7.2.1 编解码器基类 codecs 模块定义了一系列基类用来定义配合编解码器对象进行工作的接口,并且也可用作定制编解码器实 现的基础。 每种编解码器必须定义四个接口以便用作 Python 中0 码力 | 1886 页 | 8.95 MB | 9 月前3Python 标准库参考指南 3.6.15
codecs.BOM codecs.BOM_BE codecs.BOM_LE 146 Chapter 7. 二进制数据服务 The Python Library Reference, 发布 3.6.15 codecs.BOM_UTF8 codecs.BOM_UTF16 codecs.BOM_UTF16_BE codecs.BOM_UTF16_LE codecs.BOM_UTF32 codecs codecs.BOM_UTF32_BE codecs.BOM_UTF32_LE 这些常量定义了多种字节序列,即一些编码格式的 Unicode 字节顺序标记(BOM)。它们在 UTF-16 和 UTF-32 数据流中被用以指明所使用的字节顺序,并在 UTF-8 中被用作 Unicode 签名。BOM_UTF16 是BOM_UTF16_BE 或BOM_UTF16_LE,具体取决于平台的本机字节顺序,BOM 是BOM_UTF16 是BOM_UTF16 的别名, BOM_LE 是BOM_UTF16_LE 的别名,BOM_BE 是BOM_UTF16_BE 的别名。其他序列则表示 UTF-8 和 UTF-32 编码格式中的 BOM。 7.2.1 编解码器基类 codecs 模块定义了一系列基类用来定义配合编解码器对象进行工作的接口,并且也可用作定制编解码器实 现的基础。 每种编解码器必须定义四个接口以便用作 Python 中0 码力 | 1886 页 | 8.95 MB | 9 月前3Python 标准库参考指南 3.7.13
本模块还提供了以下常量,适用于读取和写入依赖于平台的文件: codecs.BOM codecs.BOM_BE codecs.BOM_LE codecs.BOM_UTF8 codecs.BOM_UTF16 codecs.BOM_UTF16_BE codecs.BOM_UTF16_LE codecs.BOM_UTF32 codecs.BOM_UTF32_BE codecs.BOM_UTF32_LE 这些常量定义了多种字节序列,即一些编码格式的 Unicode 字节顺序标记(BOM)。它们在 UTF-16 和 UTF-32 数据流中被用以指明所使用的字节顺序,并在 UTF-8 中被用作 Unicode 签名。BOM_UTF16 是BOM_UTF16_BE 或BOM_UTF16_LE,具体取决于平台的本机字节顺序,BOM 是BOM_UTF16 的 别名, BOM_LE 是BOM_UTF16_LE 的别名,BOM_BE 是BOM_UTF16_BE 的别名。其他序列则表示 的别名。其他序列则表示 UTF-8 和 UTF-32 编码格式中的 BOM。 7.2.1 编解码器基类 codecs 模块定义了一系列基类用来定义配合编解码器对象进行工作的接口,并且也可用作定制编解码 器实现的基础。 每种编解码器必须定义四个接口以便用作 Python 中的编解码器:无状态编码器、无状态解码器、流读取 器和流写入器。流读取器和写入器通常会重用无状态编码器/解码器来实现文件协议。编解码器作者还需0 码力 | 1846 页 | 9.09 MB | 9 月前3Python 标准库参考指南 3.7.13
本模块还提供了以下常量,适用于读取和写入依赖于平台的文件: codecs.BOM codecs.BOM_BE codecs.BOM_LE codecs.BOM_UTF8 codecs.BOM_UTF16 codecs.BOM_UTF16_BE codecs.BOM_UTF16_LE codecs.BOM_UTF32 codecs.BOM_UTF32_BE codecs.BOM_UTF32_LE 这些常量定义了多种字节序列,即一些编码格式的 Unicode 字节顺序标记(BOM)。它们在 UTF-16 和 UTF-32 数据流中被用以指明所使用的字节顺序,并在 UTF-8 中被用作 Unicode 签名。BOM_UTF16 是BOM_UTF16_BE 或BOM_UTF16_LE,具体取决于平台的本机字节顺序,BOM 是BOM_UTF16 的别名, BOM_LE 是BOM_UTF16_LE 的别名,BOM_BE 是BOM_UTF16_BE 的别名。其他序列则表示 的别名。其他序列则表示 UTF-8 和 UTF-32 编码格式中的 BOM。 148 Chapter 7. 二进制数据服务 The Python Library Reference, 发布 3.7.13 7.2.1 编解码器基类 codecs 模块定义了一系列基类用来定义配合编解码器对象进行工作的接口,并且也可用作定制编解码器实 现的基础。 每种编解码器必须定义四个接口以便用作 Python0 码力 | 1961 页 | 9.14 MB | 9 月前3Tornado 4.5 Documentation
detected automatically (among UTF-8 and UTF-16) if the file contains a byte-order marker (BOM), defaulting to UTF-8 if no BOM is present. Example translation es_LA.csv: "I love you","Te amo" "%(name)s liked "singular" Changed in version 4.3: Added encoding parameter. Added support for BOM- based encoding detection, UTF-16, and UTF-8-with-BOM. tornado.locale.load_gettext_translations(directory, domain) Loads translations load_translations now accepts encodings other than UTF- 8. UTF-16 and UTF-8 will be detected automatically if a BOM is present; for other encodings load_translations has an encoding parameter. tornado.locks Lock and0 码力 | 333 页 | 322.34 KB | 1 年前3
共 86 条
- 1
- 2
- 3
- 4
- 5
- 6
- 9