Skip to content

Latest commit

 

History

History
19 lines (15 loc) · 387 Bytes

File metadata and controls

19 lines (15 loc) · 387 Bytes

bdictParser

百度词典(.bdict)解析。Python3编写。

使用

from bdictParser import bdict_parser

# 从文件
words = bdict_parser.parse_file('热门游戏.bdict')
print(words)

# 从数据
with open('热门游戏.bdict') as f:
    words = bdict_parser.parse(f.read())
print(words)

说明

借鉴了buaahsh/bdictDecoder