ASCII, American Standard Code for Information Interchange 念起来像是 "阿斯key",定义从 0 到 127 的一百二十八个数字所代表的英文字母或一样的结果与意义。由于只使用7个位元(bit)就可以表示从0到127的数字,大部分的电脑都使用8个位元来存取字元集(character set),所以从128到255之间的数字可以用来代表另一组一百二十八个符号,称为 extended ASCII。 | ASCII码 | 键盘 | ASCII 码 | 键盘 | ASCII码 | 键盘 | ASCII 码 | 键盘 | 27 | ESC | 32 | SPACE | 33 | ! | 34 | " | 35 | # | 36 | $ | 37 | % | 38 | & | 39 | ' | 40 | ( | 41 | ) | 42 | * | 43 | + | 44 | ' | 45 | - | 46 | . | 47 | / | 48 | 0 | 49 | 1 | 50 | 2 | 51 | 3 | 52 | 4 | 53 | 5 | 54 | 6 | 55 | 7 | 56 | 8 | 57 | 9 | 58 | : | 59 | ; | 60 | < | 61 | = | 62 | > | 63 | ? | 64 | @ | 65 | A | 66 | B | 67 | C | 68 | D | 69 | E | 70 | F | 71 | G | 72 | H | 73 | I | 74 | J | 75 | K | 76 | L | 77 | M | 78 | N | 79 | O | 80 | P | 81 | Q | 82 | R | 83 | S | 84 | T | 85 | U | 86 | V | 87 | W | 88 | X | 89 | Y | 90 | Z | 91 | [ | 92 | \ | 93 | ] | 94 | ^ | 95 | _ | 96 | ` | 97 | a | 98 | b | 99 | c | 100 | d | 101 | e | 102 | f | 103 | g | 104 | h | 105 | i | 106 | j | 107 | k | 108 | l | 109 | m | 110 | n | 111 | o | 112 | p | 113 | q | 114 | r | 115 | s | 116 | t | 117 | u | 118 | v | 119 | w | 120 | x | 121 | y | 122 | z | 123 | { | 124 | | | 125 | } | 126 | ~ |
ASCII表
ASCII值 | 控制字符 | ASCII值 | 控制字符 | ASCII值 | 控制字符 | ASCII值 | 控制字符 | 0 | NUT | 32 | (space) | 64 | @ | 96 | 、 | 1 | SOH | 33 | ! | 65 | A | 97 | a | 2 | STX | 34 | ” | 66 | B | 98 | b | 3 | ETX | 35 | # | 67 | C | 99 | c | 4 | EOT | 36 | $ | 68 | D | 100 | d | 5 | ENQ | 37 | % | 69 | E | 101 | e | 6 | ACK | 38 | & | 70 | F | 102 | f | 7 | BEL | 39 | , | 71 | G | 103 | g | 8 | BS | 40 | ( | 72 | H | 104 | h | 9 | HT | 41 | ) | 73 | I | 105 | i | 10 | LF | 42 | * | 74 | J | 106 | j | 11 | VT | 43 | + | 75 | K | 107 | k | 12 | FF | 44 | , | 76 | L | 108 | l | 13 | CR | 45 | - | 77 | M | 109 | m | 14 | SO | 46 | . | 78 | N | 110 | n | 15 | SI | 47 | / | 79 | O | 111 | o | 16 | DLE | 48 | 0 | 80 | P | 112 | p | 17 | DCI | 49 | 1 | 81 | Q | 113 | q | 18 | DC2 | 50 | 2 | 82 | R | 114 | r | 19 | DC3 | 51 | 3 | 83 | X | 115 | s | 20 | DC4 | 52 | 4 | 84 | T | 116 | t | 21 | NAK | 53 | 5 | 85 | U | 117 | u | 22 | SYN | 54 | 6 | 86 | V | 118 | v | 23 | TB | 55 | 7 | 87 | W | 119 | w | 24 | CAN | 56 | 8 | 88 | X | 120 | x | 25 | EM | 57 | 9 | 89 | Y | 121 | y | 26 | SUB | 58 | : | 90 | Z | 122 | z | 27 | ESC | 59 | ; | 91 | [ | 123 | { | 28 | FS | 60 | < | 92 | \ | 124 | | | 29 | GS | 61 | = | 93 | ] | 125 | } | 30 | RS | 62 | > | 94 | ^ | 126 | ~ | 31 | US | 63 | ? | 95 | — | 127 | DEL |
|