Use chr() and ord():
>>> chr(97)
'a'
>>> ord('a')
97
How can I convert a character to a integer in Python, and viceversa?
猜你喜欢
转载自standalone.iteye.com/blog/2252447
今日推荐
周排行