# This is session transcript run in ConEmu: # ConEmu - Handy Windows Terminal # https://conemu.github.io/ C:\mn_prj\tmp-uni>ipython Python 2.7.15 (v2.7.15:ca079a3ea3, Apr 30 2018, 16:30:26) [MSC v.1500 64 bit (AMD64)] Type "copyright", "credits" or "license" for more information. IPython 5.8.0 -- An enhanced Interactive Python. ? -> Introduction and overview of IPython's features. %quickref -> Quick reference. help -> Python's own help system. object? -> Details about 'object', use 'object??' for extra details. In [1]: print "??" # տպել էի դդ դդ In [2]: s= raw_input(u"?????????? ?????? ????: ") # այստեղ գրել էի "Մուտքագրեք հայերեն տեքստ: ", ի դեպ առանց u"" էլ աշխատում է նույն կերպ, բայց ավելի լավ է u""-ով Մուտքագրեք հայերեն տեքստ: սա տեքստի օրինակ In [3]: s Out[3]: u'\u057d\u0561 \u057f\u0565\u0584\u057d\u057f\u056b \u0585\u0580\u056b\u0576\u0561\u056f' In [4]: s.encode('utf-8') Out[4]: '\xd5\xbd\xd5\xa1 \xd5\xbf\xd5\xa5\xd6\x84\xd5\xbd\xd5\xbf\xd5\xab \xd6\x85\xd6\x80\xd5\xab\xd5\xb6\xd5\xa1\xd5\xaf' In [5]: print s սա տեքստի օրինակ