#!/usr/bin/env python import csv f = open('name.csv', 'r', encoding="shift-jis") reader = csv.reader(f) header = next(reader) for row in reader: if row[27][2] == "山下": print(row[27]) f.close()
Standard input is empty
Standard output is empty
Traceback (most recent call last):
File "<builtin>/app_main.py", line 75, in run_toplevel
File "prog.py", line 4, in <module>
f = open('name.csv', 'r', encoding="shift-jis")
TypeError: __init__() got an unexpected keyword argument 'encoding'