Python数字与字符的转换

ord('a')
97

chr(97)
'a'

unichr(97)
u'a'

Leave a Reply

Your email address will not be published. Required fields are marked *

*