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

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.

主站蜘蛛池模板: 孟津县| 宽城| 循化| 长白| 庆元县| 米林县| 彝良县| 改则县| 呼和浩特市| 临清市| 金华市| 永丰县| 闽清县| 开化县| 博乐市| 永昌县| 来安县| 宣武区| 霍邱县| 中宁县| 舞钢市| 江安县| 平阴县| 云阳县| 双桥区| 游戏| 右玉县| 茶陵县| 尚义县| 额尔古纳市| 芷江| 张家口市| 察隅县| 嘉鱼县| 镇赉县| 宜黄县| 珲春市| 镇原县| 宣城市| 麟游县| 铅山县|