Python unichr() 函数
Python 教程
· 2019-02-01 18:56:47
描述
unichr() 函数 和 chr()函数功能基本一样, 只不过是返回 unicode 的字符。
语法
以下是 unichr() 方法的语法:
unichr(i)
参数
- i -- 可以是10进制也可以是16进制的形式的数字。
返回值
返回 unicode 的字符。
实例
以下展示了使用 unichr() 方法的实例:
>>>unichr(97)
u'a'
>>> unichr(98)
u'b'
>>> unichr(99)
u'c'
点击查看所有 Python 教程 文章: https://codercto.com/courses/l/8.html
Ruby Cookbook
Lucas Carlson、Leonard Richardson / O'Reilly Media / 2006-7-29 / USD 49.99
Do you want to push Ruby to its limits? The "Ruby Cookbook" is the most comprehensive problem-solving guide to today's hottest programming language. It gives you hundreds of solutions to real-world pr......一起来看看 《Ruby Cookbook》 这本书的介绍吧!