<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>

                企業??AI智能體構建引擎,智能編排和調試,一鍵部署,支持知識庫和私有化部署方案 廣告
                ### 導航 - [索引](../genindex.xhtml "總目錄") - [模塊](../py-modindex.xhtml "Python 模塊索引") | - [下一頁](xdrlib.xhtml "xdrlib --- Encode and decode XDR data") | - [上一頁](configparser.xhtml "configparser --- Configuration file parser") | - ![](https://box.kancloud.cn/a721fc7ec672275e257bbbfde49a4d4e_16x16.png) - [Python](https://www.python.org/) ? - zh\_CN 3.7.3 [文檔](../index.xhtml) ? - [Python 標準庫](index.xhtml) ? - [文件格式](fileformats.xhtml) ? - $('.inline-search').show(0); | # [`netrc`](#module-netrc "netrc: Loading of .netrc files.") --- netrc file processing **Source code:** [Lib/netrc.py](https://github.com/python/cpython/tree/3.7/Lib/netrc.py) \[https://github.com/python/cpython/tree/3.7/Lib/netrc.py\] - - - - - - The [`netrc`](#netrc.netrc "netrc.netrc") class parses and encapsulates the netrc file format used by the Unix **ftp** program and other FTP clients. *class* `netrc.``netrc`(\[*file*\])A [`netrc`](#netrc.netrc "netrc.netrc") instance or subclass instance encapsulates data from a netrc file. The initialization argument, if present, specifies the file to parse. If no argument is given, the file `.netrc` in the user's home directory -- as determined by [`os.path.expanduser()`](os.path.xhtml#os.path.expanduser "os.path.expanduser") -- will be read. Otherwise, a [`FileNotFoundError`](exceptions.xhtml#FileNotFoundError "FileNotFoundError") exception will be raised. Parse errors will raise [`NetrcParseError`](#netrc.NetrcParseError "netrc.NetrcParseError") with diagnostic information including the file name, line number, and terminating token. If no argument is specified on a POSIX system, the presence of passwords in the `.netrc` file will raise a [`NetrcParseError`](#netrc.NetrcParseError "netrc.NetrcParseError") if the file ownership or permissions are insecure (owned by a user other than the user running the process, or accessible for read or write by any other user). This implements security behavior equivalent to that of ftp and other programs that use `.netrc`. 在 3.4 版更改: Added the POSIX permission check. 在 3.7 版更改: [`os.path.expanduser()`](os.path.xhtml#os.path.expanduser "os.path.expanduser") is used to find the location of the `.netrc` file when *file* is not passed as argument. *exception* `netrc.``NetrcParseError`Exception raised by the [`netrc`](#netrc.netrc "netrc.netrc") class when syntactical errors are encountered in source text. Instances of this exception provide three interesting attributes: `msg` is a textual explanation of the error, `filename` is the name of the source file, and `lineno` gives the line number on which the error was found. ## netrc Objects A [`netrc`](#netrc.netrc "netrc.netrc") instance has the following methods: `netrc.``authenticators`(*host*)Return a 3-tuple `(login, account, password)` of authenticators for *host*. If the netrc file did not contain an entry for the given host, return the tuple associated with the 'default' entry. If neither matching host nor default entry is available, return `None`. `netrc.``__repr__`()Dump the class data as a string in the format of a netrc file. (This discards comments and may reorder the entries.) Instances of [`netrc`](#netrc.netrc "netrc.netrc") have public instance variables: `netrc.``hosts`Dictionary mapping host names to `(login, account, password)` tuples. The 'default' entry, if any, is represented as a pseudo-host by that name. `netrc.``macros`Dictionary mapping macro names to string lists. 注解 Passwords are limited to a subset of the ASCII character set. All ASCII punctuation is allowed in passwords, however, note that whitespace and non-printable characters are not allowed in passwords. This is a limitation of the way the .netrc file is parsed and may be removed in the future. ### 導航 - [索引](../genindex.xhtml "總目錄") - [模塊](../py-modindex.xhtml "Python 模塊索引") | - [下一頁](xdrlib.xhtml "xdrlib --- Encode and decode XDR data") | - [上一頁](configparser.xhtml "configparser --- Configuration file parser") | - ![](https://box.kancloud.cn/a721fc7ec672275e257bbbfde49a4d4e_16x16.png) - [Python](https://www.python.org/) ? - zh\_CN 3.7.3 [文檔](../index.xhtml) ? - [Python 標準庫](index.xhtml) ? - [文件格式](fileformats.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>

                              哎呀哎呀视频在线观看