mirror of
https://github.com/mii443/akaza.git
synced 2025-08-22 14:55:31 +00:00
9 lines
192 B
Python
9 lines
192 B
Python
import marisa_trie
|
|
|
|
trie = marisa_trie.BytesTrie()
|
|
trie.load('system_dict.trie')
|
|
|
|
for yomi, kanji_bytes in trie.items():
|
|
kanjis = kanji_bytes.decode('utf-8')
|
|
print(f"{yomi} {kanjis}")
|