word2word icon indicating copy to clipboard operation
word2word copied to clipboard

word2word.py의 106번째 라인에 대해

Open leejseo opened this issue 3 years ago • 1 comments

안녕하세요, word2word를 잘 사용하고 있는 한 학생입니다.
사용하다 한 가지 궁금한점이 생겨 질문드립니다.

lang1으로 ko, lang2로 en을 설정했을 때 강제로 lang1이 en, lang2가 ko로 바뀌는 현상을 발견했고, word2word.py의 106번째 라인에 있는 아래와 같은 코드가 원인인 것이라 생각됩니다.

혹시 이 부분이 의도된 동작인지 궁금하여 issue를 남겨놓습니다.

감사합니다.

lang1, lang2 = sorted([lang1, lang2])

leejseo avatar Jul 30 '20 01:07 leejseo

I had the same situation and I worked out that makes sense to define the dictionaries in a sorted manner, and then manipulate the object result in whatever way you need to, to get the "reverse" dictionary.

mariabardon avatar Jan 11 '21 09:01 mariabardon