python数字与字符转换

chr(100)

把数字转成字符

 

ord('a')

把字符转成数字

posted @ 2020-01-19 17:33  alittlecomputer  阅读(492)  评论(0编辑  收藏  举报