Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
ASCII文字を指定して、その値を取得したい。
ASCII
たとえば、キャラクターのa場合、私は取得したいです97。逆もまた同様です。
a
97
>>> ord('a') 97 >>> chr(97) 'a'
ordとchr