chr() ord() 的用法

ord()把ASCII转换成数字

chr()则相反,把数字转换成ASCII

 

ord('s') #115

chr(115) #s

posted @ 2012-11-15 09:32  践道者  阅读(4714)  评论(0)    收藏  举报