【发布时间】:2015-05-26 09:31:50
【问题描述】:
我在我的项目中使用 Pymorphy2 作为西里尔语形态分析器。 但是当我尝试打印出单词列表时,我得到了这个:
>>> for t in terms:
... p = morph.parse(t)
... if 'VERB' in p[0].tag:
... t = p[0].normal_form
... elif 'NOUN' in p[0].tag:
... t = p[0].lexeme[0][0]
...
>>> terms
[u'\u041f\u0430\u0432\u0435\u043b', u'\u0445\u043e\u0434\u0438\u0442', u'\u0434\u043e\u043c\u043e\u0439']
如何在 python shell 中打印俄语字符?
【问题讨论】:
标签: python shell unicode character-encoding cyrillic