update name code

Former-commit-id: bcf5d5386484f9a6f6fdcd496e15e4b897ade00f
This commit is contained in:
2022-06-17 22:34:35 +08:00
parent c24f2f7024
commit 950681fa20
6 changed files with 7571 additions and 99 deletions

14
name_code/gen.py Normal file
View File

@ -0,0 +1,14 @@
from pickle import dump
d=[]
base=0xa0a0
for i in range(1,87+1):
for j in range(1,94+1):
t=base+(i<<8)+j
t=t.to_bytes(2,'big')
try:
d.append(("%02d%02d"%(i,j),t.decode("gb2312")))
except UnicodeDecodeError:
pass
d=dict(d)
with open("a.dat","wb") as f:
dump(d,f)