We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cb448c2 commit 6d14a1bCopy full SHA for 6d14a1b
scripts/35_main_translate.py
@@ -0,0 +1,10 @@
1
+fromtranslateimportTranslator
2
+translator=Translator(to_lang="ja") #en es pt zh
3
+
4
+try :
5
+withopen('tot.txt',mode='r') asmy_file:
6
+text=my_file.read()
7
+translation=translator.translate(text)
8
+print(translation)
9
+exceptFileNotFoundErroraser:
10
+print('you wrote wrong directory')
0 commit comments