
enchant_broker_request_dict 함수의 첫 번째 인자 p_dict는 dict 형태의 데이터여야 합니다.
예를 들어, 다음과 같은 형태의 데이터를 넣을 수 있습니다.
#hostingforum.kr
python
p_dict = {
'lang': 'ko_KR',
'dict': 'default',
'verbose': 0,
'pwl_file': None,
'pwl_dict': None,
'pwl_file2': None,
'pwl_dict2': None,
'pwl_file3': None,
'pwl_dict3': None,
'pwl_file4': None,
'pwl_dict4': None,
'pwl_file5': None,
'pwl_dict5': None,
'pwl_file6': None,
'pwl_dict6': None,
'pwl_file7': None,
'pwl_dict7': None,
'pwl_file8': None,
'pwl_dict8': None,
'pwl_file9': None,
'pwl_dict9': None,
'pwl_file10': None,
'pwl_dict10': None,
'pwl_file11': None,
'pwl_dict11': None,
'pwl_file12': None,
'pwl_dict12': None,
'pwl_file13': None,
'pwl_dict13': None,
'pwl_file14': None,
'pwl_dict14': None,
'pwl_file15': None,
'pwl_dict15': None,
'pwl_file16': None,
'pwl_dict16': None,
'pwl_file17': None,
'pwl_dict17': None,
'pwl_file18': None,
'pwl_dict18': None,
'pwl_file19': None,
'pwl_dict19': None,
'pwl_file20': None,
'pwl_dict20': None,
}
enchant_broker_request_dict 함수의 리턴 값은 enchant_broker 객체입니다.
예를 들어, 다음과 같이 사용할 수 있습니다.
#hostingforum.kr
python
import enchant
# enchant_broker_request_dict 함수의 리턴 값인 enchant_broker 객체를 사용합니다.
broker = enchant.request_pwl_dict('ko_KR')
# enchant_broker 객체를 사용하여 단어를 확인합니다.
result = broker.check('python')
print(result) # True
2025-04-11 16:28