# -*- coding: utf-8 -*-
"""
Created on Thu Apr 06 00:02:42 2017
@author: Chung Ning
"""
import struct
idx_file = open('xhzd.idx', 'rb')
dict_file = open('xhzd.dict', 'rb')
# dict.dz 文件先使用 dictzip工具解压
dict_idx = dict()
while True:
word_str = ''
one_byte = idx_file.read(1)
if one_byte == '':
brea
使用Python分析并查询StarDict(星际译王)字典
最新推荐文章于 2024-11-05 23:31:57 发布
本文介绍如何利用Python解析和查询StarDict字典文件,包括读取字典元数据和搜索特定词汇的详细释义。

最低0.47元/天 解锁文章
130

被折叠的 条评论
为什么被折叠?



