Conversion of numbers and characters in ASCII code in Python

Convert the ASCII character to the corresponding numerical value 'a'-->65, use the ord function, ord('a')
Anyway, use the chr function to convert the numerical value to the corresponding ASCII character, chr(65)

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325899938&siteId=291194637