在Python中将字符转换成ASCII码

用 ord() 函数
也就是这样
ord('a')->97

posted @ 2023-07-26 01:40  淦丘比  阅读(10)  评论(0编辑  收藏  举报