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

Conversion functions

In order to convert a character value to ASCII code, the ord() function is used, and for converting ASCII code to character, the chr() function is used, as shown in the following screenshot:

Here, when we want to get the ASCII code for 'A', it shows 65, which you can easily get from the aforementioned table. The letter 'A' can be located on the sixth row and fifth column; thus, its value is 65. Likewise, we can get the letter corresponding to a particular ASCII code.

主站蜘蛛池模板: 怀宁县| 嵊泗县| 潮安县| 安西县| 辽宁省| 金昌市| 潜山县| 康定县| 象山县| 阜康市| 灵丘县| 桂林市| 商南县| 凌源市| 郯城县| 百色市| 泽库县| 银川市| 驻马店市| 墨玉县| 泾阳县| 小金县| 陕西省| 嘉义县| 深水埗区| 酉阳| 沙田区| 宾川县| 永新县| 滕州市| 涿州市| 会东县| 建阳市| 商城县| 奉新县| 牙克石市| 泗阳县| 石楼县| 延长县| 耒阳市| 磐安县|