<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.panel.xhtml "curses.panel --- A panel stack extension for curses") | - [上一頁](curses.xhtml "curses --- 終端字符單元顯示的處理") | - ![](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); | # [`curses.ascii`](#module-curses.ascii "curses.ascii: Constants and set-membership functions for ASCII characters.") --- Utilities for ASCII characters - - - - - - The [`curses.ascii`](#module-curses.ascii "curses.ascii: Constants and set-membership functions for ASCII characters.") module supplies name constants for ASCII characters and functions to test membership in various ASCII character classes. The constants supplied are names for control characters as follows: 名稱 意義 `NUL` `SOH` Start of heading, console interrupt `STX` Start of text `ETX` End of text `EOT` End of transmission `ENQ` Enquiry, goes with `ACK` flow control `ACK` Acknowledgement `BEL` Bell `BS` Backspace `TAB` Tab `HT` Alias for `TAB`: "Horizontal tab" `LF` Line feed `NL` Alias for `LF`: "New line" `VT` Vertical tab `FF` Form feed `CR` Carriage return `SO` Shift-out, begin alternate character set `SI` Shift-in, resume default character set `DLE` Data-link escape `DC1` XON, for flow control `DC2` Device control 2, block-mode flow control `DC3` XOFF, for flow control `DC4` Device control 4 `NAK` Negative acknowledgement `SYN` Synchronous idle `ETB` End transmission block `CAN` 取消 `EM` End of medium `SUB` Substitute `ESC` Escape `FS` File separator `GS` Group separator `RS` Record separator, block-mode terminator `US` Unit separator `SP` Space `DEL` Delete Note that many of these have little practical significance in modern usage. The mnemonics derive from teleprinter conventions that predate digital computers. The module supplies the following functions, patterned on those in the standard C library: `curses.ascii.``isalnum`(*c*)Checks for an ASCII alphanumeric character; it is equivalent to ``` isalpha(c) or isdigit(c) ``` . `curses.ascii.``isalpha`(*c*)Checks for an ASCII alphabetic character; it is equivalent to ``` isupper(c) or islower(c) ``` . `curses.ascii.``isascii`(*c*)Checks for a character value that fits in the 7-bit ASCII set. `curses.ascii.``isblank`(*c*)Checks for an ASCII whitespace character; space or horizontal tab. `curses.ascii.``iscntrl`(*c*)Checks for an ASCII control character (in the range 0x00 to 0x1f or 0x7f). `curses.ascii.``isdigit`(*c*)Checks for an ASCII decimal digit, `'0'` through `'9'`. This is equivalent to `c in string.digits`. `curses.ascii.``isgraph`(*c*)Checks for ASCII any printable character except space. `curses.ascii.``islower`(*c*)Checks for an ASCII lower-case character. `curses.ascii.``isprint`(*c*)Checks for any ASCII printable character including space. `curses.ascii.``ispunct`(*c*)Checks for any printable ASCII character which is not a space or an alphanumeric character. `curses.ascii.``isspace`(*c*)Checks for ASCII white-space characters; space, line feed, carriage return, form feed, horizontal tab, vertical tab. `curses.ascii.``isupper`(*c*)Checks for an ASCII uppercase letter. `curses.ascii.``isxdigit`(*c*)Checks for an ASCII hexadecimal digit. This is equivalent to ``` c in string.hexdigits ``` . `curses.ascii.``isctrl`(*c*)Checks for an ASCII control character (ordinal values 0 to 31). `curses.ascii.``ismeta`(*c*)Checks for a non-ASCII character (ordinal values 0x80 and above). These functions accept either integers or single-character strings; when the argument is a string, it is first converted using the built-in function [`ord()`](functions.xhtml#ord "ord"). Note that all these functions check ordinal bit values derived from the character of the string you pass in; they do not actually know anything about the host machine's character encoding. The following two functions take either a single-character string or integer byte value; they return a value of the same type. `curses.ascii.``ascii`(*c*)Return the ASCII value corresponding to the low 7 bits of *c*. `curses.ascii.``ctrl`(*c*)Return the control character corresponding to the given character (the character bit value is bitwise-anded with 0x1f). `curses.ascii.``alt`(*c*)Return the 8-bit character corresponding to the given ASCII character (the character bit value is bitwise-ored with 0x80). The following function takes either a single-character string or integer value; it returns a string. `curses.ascii.``unctrl`(*c*)Return a string representation of the ASCII character *c*. If *c* is printable, this string is the character itself. If the character is a control character (0x00--0x1f) the string consists of a caret (`'^'`) followed by the corresponding uppercase letter. If the character is an ASCII delete (0x7f) the string is `'^?'`. If the character has its meta bit (0x80) set, the meta bit is stripped, the preceding rules applied, and `'!'` prepended to the result. `curses.ascii.``controlnames`A 33-element string array that contains the ASCII mnemonics for the thirty-two ASCII control characters from 0 (NUL) to 0x1f (US), in order, plus the mnemonic `SP` for the space character. ### 導航 - [索引](../genindex.xhtml "總目錄") - [模塊](../py-modindex.xhtml "Python 模塊索引") | - [下一頁](curses.panel.xhtml "curses.panel --- A panel stack extension for curses") | - [上一頁](curses.xhtml "curses --- 終端字符單元顯示的處理") | - ![](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>

                              哎呀哎呀视频在线观看