pythonのchrとord
150 ワード
chrはintを入力しasciiを返します
ord ascii入力、int戻る
Code:
ord ascii入力、int戻る
Code:
In [1]: ord('a')
Out[1]: 97
In [2]: chr(97)
Out[2]: 'a'
In [1]: ord('a')
Out[1]: 97
In [2]: chr(97)
Out[2]: 'a'