转换相关内置函数_ord

 

描述:

ord内置函数作用:将字符转换成对应的编码

 

示例代码:

s = 'a'

print(ord(a))  #  97

 

posted @ 2021-04-02 16:19  御姐玫瑰  阅读(51)  评论(0编辑  收藏  举报
levels of contents