Python字符与ASCII码转换

有两个内置函数,记得以前在《Python Cookbook》里看到过。

>>>print ord('a')
97
>>>print chr(97)
a

原文地址:https://www.cnblogs.com/mrzero/p/4003207.html