<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ??碼云GVP開源項目 12k star Uniapp+ElementUI 功能強大 支持多語言、二開方便! 廣告
                ### 導航 - [索引](../genindex.xhtml "總目錄") - [模塊](../py-modindex.xhtml "Python 模塊索引") | - [下一頁](uu.xhtml "uu --- Encode and decode uuencode files") | - [上一頁](binascii.xhtml "binascii --- 二進制和 ASCII 碼互轉") | - ![](https://box.kancloud.cn/a721fc7ec672275e257bbbfde49a4d4e_16x16.png) - [Python](https://www.python.org/) ? - zh\_CN 3.7.3 [文檔](../index.xhtml) ? - [Python 標準庫](index.xhtml) ? - [互聯網數據處理](netdata.xhtml) ? - $('.inline-search').show(0); | # [`quopri`](#module-quopri "quopri: Encode and decode files using the MIME quoted-printable encoding.") --- Encode and decode MIME quoted-printable data **Source code:** [Lib/quopri.py](https://github.com/python/cpython/tree/3.7/Lib/quopri.py) \[https://github.com/python/cpython/tree/3.7/Lib/quopri.py\] - - - - - - This module performs quoted-printable transport encoding and decoding, as defined in [**RFC 1521**](https://tools.ietf.org/html/rfc1521.html) \[https://tools.ietf.org/html/rfc1521.html\]: "MIME (Multipurpose Internet Mail Extensions) Part One: Mechanisms for Specifying and Describing the Format of Internet Message Bodies". The quoted-printable encoding is designed for data where there are relatively few nonprintable characters; the base64 encoding scheme available via the [`base64`](base64.xhtml#module-base64 "base64: RFC 3548: Base16, Base32, Base64 Data Encodings; Base85 and Ascii85") module is more compact if there are many such characters, as when sending a graphics file. `quopri.``decode`(*input*, *output*, *header=False*)Decode the contents of the *input* file and write the resulting decoded binary data to the *output* file. *input* and *output* must be [binary file objects](../glossary.xhtml#term-file-object). If the optional argument *header* is present and true, underscore will be decoded as space. This is used to decode "Q"-encoded headers as described in [**RFC 1522**](https://tools.ietf.org/html/rfc1522.html) \[https://tools.ietf.org/html/rfc1522.html\]: "MIME (Multipurpose Internet Mail Extensions) Part Two: Message Header Extensions for Non-ASCII Text". `quopri.``encode`(*input*, *output*, *quotetabs*, *header=False*)Encode the contents of the *input* file and write the resulting quoted-printable data to the *output* file. *input* and *output* must be [binary file objects](../glossary.xhtml#term-file-object). *quotetabs*, a non-optional flag which controls whether to encode embedded spaces and tabs; when true it encodes such embedded whitespace, and when false it leaves them unencoded. Note that spaces and tabs appearing at the end of lines are always encoded, as per [**RFC 1521**](https://tools.ietf.org/html/rfc1521.html) \[https://tools.ietf.org/html/rfc1521.html\]. *header* is a flag which controls if spaces are encoded as underscores as per [**RFC 1522**](https://tools.ietf.org/html/rfc1522.html) \[https://tools.ietf.org/html/rfc1522.html\]. `quopri.``decodestring`(*s*, *header=False*)Like [`decode()`](#quopri.decode "quopri.decode"), except that it accepts a source [`bytes`](stdtypes.xhtml#bytes "bytes") and returns the corresponding decoded [`bytes`](stdtypes.xhtml#bytes "bytes"). `quopri.``encodestring`(*s*, *quotetabs=False*, *header=False*)Like [`encode()`](#quopri.encode "quopri.encode"), except that it accepts a source [`bytes`](stdtypes.xhtml#bytes "bytes") and returns the corresponding encoded [`bytes`](stdtypes.xhtml#bytes "bytes"). By default, it sends a `False` value to *quotetabs* parameter of the [`encode()`](#quopri.encode "quopri.encode") function. 參見 模塊 [`base64`](base64.xhtml#module-base64 "base64: RFC 3548: Base16, Base32, Base64 Data Encodings; Base85 and Ascii85")Encode and decode MIME base64 data ### 導航 - [索引](../genindex.xhtml "總目錄") - [模塊](../py-modindex.xhtml "Python 模塊索引") | - [下一頁](uu.xhtml "uu --- Encode and decode uuencode files") | - [上一頁](binascii.xhtml "binascii --- 二進制和 ASCII 碼互轉") | - ![](https://box.kancloud.cn/a721fc7ec672275e257bbbfde49a4d4e_16x16.png) - [Python](https://www.python.org/) ? - zh\_CN 3.7.3 [文檔](../index.xhtml) ? - [Python 標準庫](index.xhtml) ? - [互聯網數據處理](netdata.xhtml) ? - $('.inline-search').show(0); | ? [版權所有](../copyright.xhtml) 2001-2019, Python Software Foundation. Python 軟件基金會是一個非盈利組織。 [請捐助。](https://www.python.org/psf/donations/) 最后更新于 5月 21, 2019. [發現了問題](../bugs.xhtml)? 使用[Sphinx](http://sphinx.pocoo.org/)1.8.4 創建。
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看