g47 1000
@g471000
Reviews Written
1
Average Rating
5.0
Posts
Q&A
๋ผ์ด๋ธ๋ฌ๋ฆฌ ์คํ ์ค๋ฅ ๋ฌธ์ ์ ๋๋คใ ใ
์ ๋ ๊ฐ์ ๋ฌธ์ ๊ฐ ๋ฐ์ํ๋ค์ฉ. 4.0.0rc1 ๋ฒ์ ์ค์นํ๋๋ฐ๋ ์ค๋ฅ๊ฐ ๋ฐ์ํฉ๋๋ค. > pip show googletrans Name: googletrans Version: 4.0.0rc1 Summary: Free Google Translate API for Python. Translates totally free of charge. Home-page: https://github.com/ssut/py-googletrans Author: SuHun Han Author-email: ssut@ssut.me License: MIT Location: /Users/username/opt/anaconda3/lib/python3.8/site-packages Requires: httpx Required-by: ์ ์ฝ๋์ ์๋ฌ๋ ์๋์ ๊ฐ์ต๋๋ค. ํน์ ๊ฐ์ ์ค๋ฅ ์์ผ์ จ๋๋ถ ๊ณ์ ๊ฐ์? from googletrans import Translator dave = Translator() word = dave.translate('์๋ .', dest='en', src='ko') print(word) --------------------------------------------------------------------------- AttributeError Traceback (most recent call last) in 2 3 dave = Translator() ----> 4 word = dave.translate('์๋ .', dest='en', src='ko') 5 print(word) ~/opt/anaconda3/lib/python3.8/site-packages/googletrans/client.py in translate(self, text, dest, src, **kwargs) 180 elif src in LANGCODES: 181 src = LANGCODES[src] --> 182 else: 183 raise ValueError('invalid source language') 184 ~/opt/anaconda3/lib/python3.8/site-packages/googletrans/client.py in _translate(self, text, dest, src, override) 76 if timeout is not None: 77 self.client.timeout = timeout ---> 78 79 if use_fallback: 80 self.service_urls = DEFAULT_FALLBACK_SERVICE_URLS ~/opt/anaconda3/lib/python3.8/site-packages/googletrans/gtoken.py in do(self, text) 192 if a 194 a %= 1000000 # int(1E6) 195 196 return '{}.{}'.format(a, a ^ b) ~/opt/anaconda3/lib/python3.8/site-packages/googletrans/gtoken.py in _update(self) 60 61 try: ---> 62 # this will be the same as python code after stripping out a reserved word 'var' 63 code = self.RE_TKK.search(r.text).group(1).replace('var ', '') 64 # unescape special ascii characters such like a \x3d(=) AttributeError: 'NoneType' object has no attribute 'group'
- Likes
- 0
- Comments
- 3
- Viewcount
- 1.8K
Q&A
๋ค์ด์ด๊ทธ๋จ ๊ทธ๋ฆฌ์ค๋ ํด์ ์ด๋๊ฑฐ ์ฌ์ฉํ์ จ๋์?
์ ๋ ์ด๊ฑฐ ๊ถ๊ธํ๋๋ฐ keynote ์๊ตฐ์. ์ข์์ ๋ณด ๊ฐ์ฌ๋๋ฆฝ๋๋ค.
- Likes
- 0
- Comments
- 2
- Viewcount
- 348
Q&A
ํ์๊ฐ์ ์คํ์ ์๊พธ ์๋ฌ๊ฐ๋ฉ๋๋ค ใ -ใ
์ ๋ ๋น์ทํ ์๋ฌ๊ฐ ๋ฌ๋๋ฐ ๋ต๊ธ ๋ณด๊ณ ํด๊ฒฐ ํ๋ค์. ๊ฐ์ฌํฉ๋๋ค ์ํฌํฐ์ฆ๋ ๊ทธ๋ฆฌ๊ณ ์ํ๋! ์ง๋ฌธ ๋ฏธ๋ฆฌ ํด์ฃผ์ ๋ถ๋์! :)
- Likes
- 0
- Comments
- 4
- Viewcount
- 823




