回答編集履歴
2
別解
test
CHANGED
@@ -23,3 +23,21 @@
|
|
23
23
|
print u"正解率:", ok, "/", total, "=" ,ok/total
|
24
24
|
|
25
25
|
```
|
26
|
+
|
27
|
+
|
28
|
+
|
29
|
+
---
|
30
|
+
|
31
|
+
別解
|
32
|
+
|
33
|
+
|
34
|
+
|
35
|
+
ソースの先頭に以下の行を入れると、ソースを変更せずに日本語が表示されます。
|
36
|
+
|
37
|
+
|
38
|
+
|
39
|
+
```python
|
40
|
+
|
41
|
+
from __future__ import division, print_function, absolute_import, unicode_literals
|
42
|
+
|
43
|
+
```
|
1
uを追記
test
CHANGED
@@ -18,8 +18,8 @@
|
|
18
18
|
|
19
19
|
```python
|
20
20
|
|
21
|
-
print "予測結果:",pre
|
21
|
+
print u"予測結果:",pre
|
22
22
|
|
23
|
-
print "正解率:", ok, "/", total, "=" ,ok/total
|
23
|
+
print u"正解率:", ok, "/", total, "=" ,ok/total
|
24
24
|
|
25
25
|
```
|