[AAuto] 纯文本查看 复制代码 import console;
var q = 0xB3;
console.setTitle("中文编码字符集");
for (z = 0x81; 0xFE; 1) {
if (q > 128 and q < 255) z = q;
var zz = string.format("%X", z);
console.writeColorText('\n\t\t\t 中文编码字符集', console.color.yellow, console.color.black);
console.writeColorText(' (GB18030-2022) ', console.color.red, console.color.black);
console.writeColorText(zz++'区', console.color.yellow, console.color.black);
console.log('\n');
console.writeColorText(' '++zz++' ', console.color.yellow, console.color.red);
for (j = 0x0; 0xF; 1) {
console.writeColorText(' ', console.color.yellow, console.color.black);
console.writeColorText(' '++string.format("%0X", j) ++' ', console.color.red, console.color.yellow);
}
console.log('\n');
var k1 = "\x"++string.format("%X", z);
for (i = 0x4; 0xF; 1) {
console.writeColorText(' '++string.format("%X", i) ++' ', console.color.red, console.color.yellow);
var kk = ' ';
for (j = 0x0; 0xF; 1) {
var k = i * 16 + j;
var k2 = "\x"++string.format("%X", k);
kk = kk++' '++string.format("%X", z) ++string.format("%X", k);
var k3 = k1++k2;
k3 = string.unhex(k3);
if ((i == 0x7 or i == 0xF) and j == 0xF) continue;
console.writeColorText(' ', console.color.yellow, console.color.black);
if (z >= 0xB0 and z <= 0xF7 and k > 0xA0) console.writeColorText(k3, console.color.white, console.color.black);
else console.writeColorText(k3, console.color.yellow, console.color.black);
console.writeColorText(' ');
}
console.log();
console.writeColorText(kk, 5, console.color.black);
console.log();
}
console.writeColorText('\n\t\t当前显示是 ', console.color.blue, console.color.black);
console.writeColorText(z, console.color.red, console.color.black);
console.writeColorText(' / ', console.color.blue, console.color.black);
console.writeColorText(zz, console.color.red, console.color.black);
console.writeColorText(' 区,', console.color.blue, console.color.black);
console.setTextAttribute(console.color.blue, console.color.black);
q = console.getNumber("请输入要显示的区号(129-254):");
console.clearScreen();
}
|