Built-in functions: ord, chr, ascii

Print (the ord ( ' A ' )) # characters as unicode into digital accept only a single character 
Print (CHR (97)) # -digital converter according to unicode letters 
Print (ascii ( ' Ike ' )) # long as ascii code the content can be printed out, if not the places \ u in the form of return

 

Guess you like

Origin www.cnblogs.com/aizhinong/p/11407446.html