python字符和ASCII码互相转换

ord(a) : 将a(字符)转换成其对应的ASCII码值

chr(a) : 将a(ASCII码值)转换成其对应的字符 

posted @ 2022-01-19 14:56  garywayne  阅读(338)  评论(0)    收藏  举报