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

                合規國際互聯網加速 OSASE為企業客戶提供高速穩定SD-WAN國際加速解決方案。 廣告
                # Python `ord()`函數 > 原文: [https://thepythonguru.com/python-builtin-functions/ord/](https://thepythonguru.com/python-builtin-functions/ord/) * * * 于 2020 年 1 月 7 日更新 * * * `ord()`函數(缺少序數)返回一個整數,表示傳遞給它的字符。 對于 ASCII 字符,返回值是 7 位 ASCII 代碼,對于 Unicode 字符,返回值是指 Unicode 代碼點。 其語法如下: ```py ord(c) -> code point ``` | 參數 | 描述 | | --- | --- | | `c` | `c`是字符串字符串。 | 這是一個例子: ```py >>> >>> ord("A") 65 >>> >>> >>> ord("f") 102 >>> >>> >>> ord("á") # accented a 225 >>> >>> >>> ord("卍") # swastika 21325 >>> >>> >>> ord("??") # Grinning Face 128512 >>> ``` 試試看: ```py print(ord("A")) print(ord("f")) print(ord("á")) # accented a print(ord("卍")) # swastika print(ord("??")) # Grinning Face ``` 要將`ord()`返回的整數轉換回其等效字符,我們使用[`chr()`](/python-builtin-functions/chr/)函數。 * * * * * *
                  <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>

                              哎呀哎呀视频在线观看