怎么通过ascii 把数字转换成字母

来源:百度知道 编辑:UC知道 时间:2024/06/11 09:20:20
asp 怎么通过ascii 把数字转换成字母
asp 怎么通过ascii 把数字转换成字母 输出

将字符串转化为数字的方法:
DIM I AS LONG
I=ASC("a");

将ASCII转化为字符串的方法:
DIM I AS STRING
I=char(97)。

$ python
Python 2.7.3 (default, Jan 2 2013, 16:53:07)
[GCC 4.7.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> print chr(65)
A
>>>

$ python
Python 2.7.3 (default, Jan 2 2013, 16:53:07)
[GCC 4.7.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> print chr(65)

如果,a=65,chr(a)就是字符了