官术网_书友最值得收藏!

Converting to a character using the chr method

Integer values can be converted to the corresponding character. The correspondence is defined by the Unicode codepoint. 

In the case of values below 256, it coincides with the ASCII table. Considering the following code snippet:

say 65.chr; # prints A

Higher values produce characters from the Unicode tables, as shown here:

say 8594.chr; # →

The same result can be obtained using the hexadecimal representation, as shown here:

say 0x2192.chr; # →
主站蜘蛛池模板: 通江县| 高安市| 九寨沟县| 盱眙县| 兴山县| 巴南区| 黑水县| 青州市| 鄂托克旗| 永年县| 兴宁市| 信丰县| 太仓市| 靖安县| 岫岩| 安龙县| 新野县| 马公市| 昌江| 崇义县| 微博| 天等县| 乌拉特前旗| 门源| 宜阳县| 斗六市| 五莲县| 大化| 南漳县| 宣威市| 垣曲县| 武冈市| 新竹市| 景谷| 肃南| 健康| 屏边| 海晏县| 民和| 莫力| 宕昌县|