python函数chr()
来源:互联网 发布:java求n的阶乘for循环 编辑:程序博客网 时间:2024/06/07 07:27
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().
代码实例:
1
2
3
4
5
6
7
8
>>>
chr
(
97
)
'a'
>>>
chr
(
98
)
'b'
>>>
ord
(
'a'
)
97
>>>
ord
(
'b'
)
98
0 0
- python函数chr()
- python chr() 函数
- python中的chr()函数
- python: ord & chr 函数
- python chr()和ord()函数
- python ord() chr() unichr() 函数
- Python标准库:内置函数chr(i)
- Python内置函数chr() unichr() ord()
- Python中的chr和ode函数
- Python 函数 —— ord(), chr()
- python的chr()和ord()函数
- Chr函数
- Chr函数
- chr()函数
- python 中常见字符函数 chr unichr ord函数介绍
- Python 中的lower()、upper()函数和str\chr
- python中hex,oct,chr,ord函数讲解
- python中chr()和ord()函数的用法
- iOS开发面试题大全-6
- iOS开发面试题大全-7
- OpenStack(7)-了解stack.sh
- Java动态代理JDK与Cglib
- 几种高清编码方式和文件封装格式介绍
- python函数chr()
- Multiple markers at this line - The type org.xmlpull.v1.XmlPullParser cannot be resolved. It is ind
- validform验证框架中遇到的一点点问题记录
- Java回调机制解析
- 激烈的人机大战后又一次思考智能机器人这个问题
- 二层设备与三层设备的区别
- 存储的大小端问题
- openlayers基础知识
- 怎么用HTML写微信弹幕效果