回答編集履歴
1
2\.7に合わせて回答内容を修正
test
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
- (Windows環境であれば)`sys.stdout = codecs~`行をコメントアウトする。
|
4
4
|
|
5
|
-
- `print
|
5
|
+
- `print u'日本語', "abc"`のようにprint文の`(`と`)`をなくし、日本語はunicode文字列としてprintに渡す。
|
6
6
|
|
7
7
|
|
8
8
|
|
@@ -20,6 +20,6 @@
|
|
20
20
|
|
21
21
|
#sys.stdout = codecs.getwriter('utf_8')(sys.stdout)
|
22
22
|
|
23
|
-
print
|
23
|
+
print u"予測結果:", "abc"
|
24
24
|
|
25
25
|
```
|