python中字符与ascii码转换

  ASCII码转字符用chr()函数:

   

   字符转ASCII码用ord()函数:

     

posted @ 2015-04-08 10:43  LarryKnight  阅读(368)  评论(0)    收藏  举报