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

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.

主站蜘蛛池模板: 天等县| 巧家县| 介休市| 牙克石市| 新巴尔虎左旗| 南昌市| 新建县| 大悟县| 修水县| 江津市| 娄烦县| 东明县| 即墨市| 恩施市| 阿克苏市| 静海县| 绥滨县| 和龙市| 虞城县| 上杭县| 乡城县| 扶余县| 潜山县| 井陉县| 商洛市| 钟祥市| 台湾省| 长葛市| 绥德县| 全南县| 塘沽区| 修文县| 宜良县| 绥中县| 舒城县| 香港 | 新宁县| 无为县| 松滋市| 天门市| 渝中区|