Python2.6
>>> sys.stdout = codecs.getwriter('utf-8')(sys.stdout)
Python3.0
>>> sys.stdout = io.TextIOWrapper(sys.stdout.buffer, encoding='utf-8')
Various things that I read and meet everyday.
>>> sys.stdout = codecs.getwriter('utf-8')(sys.stdout)
>>> sys.stdout = io.TextIOWrapper(sys.stdout.buffer, encoding='utf-8')
0 件のコメント:
コメントを投稿