The World Wide Web, restored to 800 pixels of glory.
GeezerVison is showing www.runoob.com — Python chr() 函数 | 菜鸟教程
Python 内置函数
chr() 用一个范围在 range(256)内的(就是0~255)整数作参数,返回一个对应的字符。
以下是 chr() 方法的语法:
chr(i)
返回值是当前整数对应的 ASCII 字符。
以下展示了使用 chr() 方法的实例:
取消