python字符与ascII的相互转化

sum = ord('A') 

//结果为65

 

sum = chr(65)

//结果为A

posted @ 2020-06-18 21:32  lucky_light  阅读(1747)  评论(0编辑  收藏  举报