如何在Python中将整数转换为字符?

Python的内置函数chr()返回的sunicode字符等效于0到0x10ffff之间的整数。

>>> chr(a)
'd'
>>> chr(300)
'Ĭ'
>>> chr(65)
'A'