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

一般使用这两个函数

sum = ord('A') 

//结果为65

sum = chr(65)

//结果为A

猜你喜欢

转载自www.cnblogs.com/cheneyboon/p/11609376.html