self.word_list = pd.read_csv('./word.csv', usecols=['简称'])
报错如下
Traceback (most recent call last):
File "baidusearch.py", line 28, in
baidusearch().get_content()
File "baidusearch.py", line 8, in __init__
self.word_list = pd.read_csv('./word.csv', usecols=['简称'])
File "/usr/lib64/python3.4/site-packages/pandas/io/parsers.py", line 709, in parser_f
return _read(filepath_or_buffer, kwds)
File "/usr/lib64/python3.4/site-packages/pandas/io/parsers.py", line 449, in _read
parser = TextFileReader(filepath_or_buffer, **kwds)
File "/usr/lib64/python3.4/site-packages/pandas/io/parsers.py", line 818, in __init__
self._make_engine(self.engine)
File "/usr/lib64/python3.4/site-packages/pandas/io/parsers.py", line 1049, in _make_engine
self._engine = CParserWrapper(self.f, **self.options)
File "/usr/lib64/python3.4/site-packages/pandas/io/parsers.py", line 1695, in __init__