How python to achieve the conversion of the character and ASCII code

General use these functions

 

sum = ord('A') 

// result is 65

 

sum = chr(65)

// result is A

Guess you like

Origin www.cnblogs.com/cheneyboon/p/11609376.html