본문 바로가기
프로그래밍/python

[python] python으로 구글번역기 사용하기

by 잇서니 2020. 10. 14.
반응형

 

구글번역 패키지를 먼저 설치합니다.

pip3 install googletrans

 

너무나 간단한 코드로 구글번역기를 사용합니다.

from googletrans import Translator 
trans = Translator() 
r1 = trans.translate('폴킴')

print(r1.text)

 

 

반응형

댓글