MCPcopy Create free account
hub / github.com/BYVoid/OpenCC / find_target_items

Function find_target_items

data/scripts/common.py:187–191  ·  view source on GitHub ↗
(input_filename, keyword)

Source from the content-addressed store, hash-verified

185
186
187def find_target_items(input_filename, keyword):
188 for entry in Dict().iter(input_filename):
189 for value in entry['values']:
190 if keyword in value:
191 print(Dict.get_line(entry), end='')

Calls 4

printFunction · 0.85
get_lineMethod · 0.80
DictClass · 0.70
iterMethod · 0.45