Python provide build-in function to help us translate bettween Char and ASCII, for example:

>>>print ord("a")
97
>>>print chr(97)
a

 

 

 

相关文章: