Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
leejseo opened this issue Jul 30, 2020 · 1 comment
Open

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

leejseo opened this issue Jul 30, 2020 · 1 comment

Comments

@leejseo
Copy link

leejseo commented Jul 30, 2020

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

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

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

감사합니다.

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

@mariabardon
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants