「Python」ord関数でUnicodeコードポイントを取得する

環境
Python 3.9.13
Windows 11 Pro 21H2 64bit
PyCharm 2022.2.1 (Community Edition)

構文
ord(文字)
ord関数を使用すると、Unicodeコードポイントを取得します。

使用例

res = ord('A')

print(res)

res2 = ord('B')

print(res2)

実行結果
65
66

Python

Posted by arkgame