お詫びと訂正(正誤表)
              本書の以下の部分に誤りがありました。ここに訂正するとともに、ご迷惑をおかけしたことを深くお詫び申し上げます。
(2016年10月21日更新)
P.67 5行目
| 誤 | YES が表示されます。 | 
|---|
| 正 | print文が実行されます。 | 
|---|
P.67 リスト2.11
if文の前に「a = 20」が抜けていました。
P.75 2章
P.114 3章
P.136 5章
P.144 5章
| 誤 | 
>>> set([1,2,1,3])
>>> set(2,3)
 | 
|---|
| 正 | 
>>> set([1,2,1,3])
>>> set{1,2,3}
 | 
|---|
P.168、P.169 6章
| 誤 | 
f = open('file_not_found_exception','w')
try:
    f.write()
except FileNotFoundError as ioe:
    print('ファイルが見つかりませんでした')
finally:
    f.close()
 | 
|---|
| 正 | 
try:
    f = open('file_not_found_exception','r')
    f.read()
except FileNotFoundError as ioe:
    print('ファイルが見つかりませんでした')
finally:
    f.close()
 | 
|---|
P.206 7章
| 誤 | 
def import_data(self, file):
        import csv
        import date view
        with open(file, ‘r), encoding = 'utf-8' as f:
 | 
|---|
| 正 | 
def import_data(self, file):
        import csv
        import datetime
        with open(file, 'r', encoding = 'utf-8') as f:
 | 
|---|
P.251 10章
P.251 10章 リスト10.3内
| 誤 | 
<html>
<head><meta charset=""UTF-8"">
</head>
 | 
|---|
| 正 |  | 
|---|
<head>から始まる一文を削除します