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

                ThinkChat2.0新版上線,更智能更精彩,支持會話、畫圖、視頻、閱讀、搜索等,送10W Token,即刻開啟你的AI之旅 廣告
                ### 導航 - [索引](../genindex.xhtml "總目錄") - [模塊](../py-modindex.xhtml "Python 模塊索引") | - [下一頁](curses.xhtml "curses --- 終端字符單元顯示的處理") | - [上一頁](logging.handlers.xhtml "logging.handlers --- Logging handlers") | - ![](https://box.kancloud.cn/a721fc7ec672275e257bbbfde49a4d4e_16x16.png) - [Python](https://www.python.org/) ? - zh\_CN 3.7.3 [文檔](../index.xhtml) ? - [Python 標準庫](index.xhtml) ? - [通用操作系統服務](allos.xhtml) ? - $('.inline-search').show(0); | # [`getpass`](#module-getpass "getpass: Portable reading of passwords and retrieval of the userid.") --- 便攜式密碼輸入工具 **源代碼:** [Lib/getpass.py](https://github.com/python/cpython/tree/3.7/Lib/getpass.py) \[https://github.com/python/cpython/tree/3.7/Lib/getpass.py\] - - - - - - [`getpass`](#module-getpass "getpass: Portable reading of passwords and retrieval of the userid.") 模塊提供了兩個函數: `getpass.``getpass`(*prompt='Password: '*, *stream=None*)提示用戶輸入一個密碼且不會回顯。 用戶會看到字符串 *prompt* 作為提示,其默認值為 `'Password: '`。 在 Unix 上,如有必要提示會使用替換錯誤句柄寫入到文件類對象 *stream*。 *stream* 默認指向控制終端 (`/dev/tty`),如果不可用則指向 `sys.stderr` (此參數在 Windows 上會被忽略)。 如果回顯自由輸入不可用則 getpass() 將回退為打印一條警告消息到 *stream* 并且從 `sys.stdin` 讀取同時發出 [`GetPassWarning`](#getpass.GetPassWarning "getpass.GetPassWarning")。 注解 如果你從 IDLE 內部調用 getpass,輸入可能是在你啟動 IDLE 的終端中而非在 IDEL 窗口本身中完成。 *exception* `getpass.``GetPassWarning`一個當密碼輸入可能被回顯時發出的 [`UserWarning`](exceptions.xhtml#UserWarning "UserWarning") 子類。 `getpass.``getuser`()返回用戶的“登錄名稱”。 此函數會按順序檢查環境變量 `LOGNAME`, `USER`, `LNAME` 和 `USERNAME`,并返回其中第一個被設置為非空字符串的值。 如果均未設置,則在支持 [`pwd`](pwd.xhtml#module-pwd "pwd: The password database (getpwnam() and friends). (Unix)") 模塊的系統上將返回來自密碼數據庫的登錄名,否則將引發一個異常。 通常情況下,此函數應優先于 [`os.getlogin()`](os.xhtml#os.getlogin "os.getlogin") 使用。 ### 導航 - [索引](../genindex.xhtml "總目錄") - [模塊](../py-modindex.xhtml "Python 模塊索引") | - [下一頁](curses.xhtml "curses --- 終端字符單元顯示的處理") | - [上一頁](logging.handlers.xhtml "logging.handlers --- Logging handlers") | - ![](https://box.kancloud.cn/a721fc7ec672275e257bbbfde49a4d4e_16x16.png) - [Python](https://www.python.org/) ? - zh\_CN 3.7.3 [文檔](../index.xhtml) ? - [Python 標準庫](index.xhtml) ? - [通用操作系統服務](allos.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>

                              哎呀哎呀视频在线观看