質問編集履歴

1

エラーメッセージ文の追加

2015/05/06 12:39

投稿

退会済みユーザー
test CHANGED
File without changes
test CHANGED
@@ -1,3 +1,9 @@
1
+ 「みんなのPython Wevアプリ編」という本を見ながら、下記コードを書きました。
2
+
3
+ (ただ、この本が2007年に書かれた古い本で、Python2をベースにしているので、自分なりにPython3で使えるように書き直しています。これが原因だと思います…)
4
+
5
+
6
+
1
7
  ```lang-python
2
8
 
3
9
  #!/usr/bin/env python
@@ -96,6 +102,8 @@
96
102
 
97
103
  の所で、エラーが出てしまいます。
98
104
 
105
+ lang_dic = {}, pickle = <module 'pickle' from 'C:\\Python34\\lib\\pickle.py'>, pickle.load = <built-in function load>, f = <_io.TextIOWrapper name='./favorite_language.dat' mode='r' encoding='cp932'>
106
+
99
107
  TypeError: 'str' does not support the buffer interface
100
108
 
101
109
  args = ("'str' does not support the buffer interface",)