按教材书上的,也不行,求大神解答
start = (2014, 5, 1)
end = (2014, 6, 30)
quotes = mpf.quotes_historical_yahoo(‘^GDAXI’, start, end)
File "<ipython-input-4-a075dc566229>", line 3
quotes = mpf.quotes_historical_yahoo(‘^GDAXI’, start, end)
^
SyntaxError: invalid syntax
是不是‘^GDAXI’中冒号的原因,改成了英文输入''也不行,提示
quotes = mpf.quotes_historical_yahoo('^GDAXI', start, end)
Traceback (most recent call last):
File "<ipython-input-25-d8017023d9ad>", line 1, in <module>
quotes = mpf.quotes_historical_yahoo('^GDAXI', start, end)
AttributeError: 'module' object has no attribute 'quotes_historical_yahoo'
|