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

默认分类 未结 1 484
0o哒丫梨o0
0o哒丫梨o0 2023-03-20 21:04
1条回答
  • 2023-03-20 21:47

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

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

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

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

    0 讨论(0)
提交回复