python 如何实现对字符和ASCII码的转换

一般使用这两个函数

 

sum = ord('A') 

//结果为65

 

sum = chr(65)

//结果为A

posted @ 2019-09-29 18:30  极客海  阅读(17011)  评论(0编辑  收藏  举报