用Python Googletrans识别字符语言
# -*- coding:utf-8 -*-
from googletrans import Translator
#实例化
translator = Translator(service_urls=['translate.google.com','translate.google.com'])
content = 'Imprimir' # 要识别的字符
lang_content = (translator.detect(content).lang) # 获取识别出来的语言
print(lang_content)