#!/usr/bin/env python import csv f = open('name.csv', 'r', encoding="utf-8")reader = csv.reader(f)header = next(reader) for row in reader: if row[27][2] == u"山下": 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 5, in <module> f = open('name.csv', 'r', encoding="utf-8") TypeError: __init__() got an unexpected keyword argument 'encoding'
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!