大神,为何代码出错?求问
C:\Python27\python.exe C:/Users/guang/Desktop/均线策略/均线策略.py
Traceback (most recent call last):
File "C:/Users/guang/Desktop/���߲���/���߲���.py", line 297, in <module>
stock_data = get_stock_data('sz000002')
File "C:/Users/guang/Desktop/���߲���/���߲���.py", line 38, in get_stock_data
stock_data = pd.read_csv('C:\Users\guang\Desktop\HISTORY DATA\all_trading_data\新建文件夹/' + str(stock_code) + '.csv', parse_dates=['date'])
File "C:\Python27\lib\site-packages\pandas\io\parsers.py", line 562, in parser_f
return _read(filepath_or_buffer, kwds)
File "C:\Python27\lib\site-packages\pandas\io\parsers.py", line 315, in _read
parser = TextFileReader(filepath_or_buffer, **kwds)
File "C:\Python27\lib\site-packages\pandas\io\parsers.py", line 645, in __init__
self._make_engine(self.engine)
File "C:\Python27\lib\site-packages\pandas\io\parsers.py", line 799, in _make_engine
self._engine = CParserWrapper(self.f, **self.options)
File "C:\Python27\lib\site-packages\pandas\io\parsers.py", line 1213, in __init__
self._reader = _parser.TextReader(src, **kwds)
File "pandas\parser.pyx", line 358, in pandas.parser.TextReader.__cinit__ (pandas\parser.c:3282)
File "pandas\parser.pyx", line 628, in pandas.parser.TextReader._setup_parser_source (pandas\parser.c:6724)
IOError: File C:\Users\guang\Desktop\HISTORY DATAll_trading_data\新建文件夹/sz000002.csv does not exist