python学习(一)

Python提供了ord和chr两个内置的函数,用于字符与ASCII码之间的转换。如:函数 >>>   print  ord( ' a ' ) 97 >>>   print  chr( 98 ) b
相关文章
相关标签/搜索