from pygtrans import Translate
client = Translate()
text1 = "family zen garden sykling hd free download for pc, in the style of playful, whismical illustrations, uhd image, editorial illustrations, fresco paintings, children's book illustrations"
text = client.translate(text1, target='zh', fmt='text')
print(text)
输出:
TranslateResponse(translatedText="family zen garden sykling hd free download for pc, in the style of playful, whismical illustrations, uhd image, editorial illustrations, fresco paintings, children's book illustrations", detectedSourceLanguage='en', model=None
程序:
输出: