python函数chr()
2016-03-18 13:25
561 查看
chr(i)
中文说明:返回整数i对应的ASCII字符。与ord()作用相反。
参数x:取值范围[0, 255]之间的正数。
版本:该函数在python2和python3各个版本中都可用。不存在兼容性问题。
英文说明:
Return a string of one character whose ASCII code is the integer i. For example, chr(97) returns the string 'a'. This is the inverse of ord(). The argument must be in the range [0..255], inclusive; ValueError will be raised if i is outside that range. See also
unichr().
代码实例:
相关文章推荐
- python (9)统计文件夹下的所有文件夹数目,和统计文件夹下所有文件数目
- python 多继承(新式类) 二
- 用PYTHON對文件批量改名
- 使用Python开发类Nagios监控软件
- python 在不同层级目录import 模块的方法-andersonyan-ChinaUnix博客
- Python 中的进程、线程、协程、同步、异步、回调
- 浅析Python基础-流程控制
- 浅析Python编写函数装饰器
- 【待解决】关于python-mysqldb的安装
- python select
- python正则表达式之作业计算器
- python mysql
- python3 字符编码处理
- 基于python yield机制的异步操作同步化编程模型
- Python implement inverted index
- 理解Python中的With语句
- Python 类的创建
- python rabbitmq
- Python -- 获取文件所在目录和文件名
- 深入浅出Python(中文版) 下载地址