【Python】如何获取字符的十进制数值

print(ord('y'),',',ord('a'))
121 , 97

 

posted on 2023-01-08 18:59  至清无物  阅读(16)  评论(0编辑  收藏  举报