Traceback (most recent call last):
File "<pyshell#21>", line 1, in
print stock.price
File "C:\Python27\lib\site-packages\grs\fetch_data.py", line 391, in price
return self.serial_price()
File "C:\Python27\lib\site-packages\grs\fetch_data.py", line 291, in serial_price
return list(result)
File "C:\Python27\lib\site-packages\grs\fetch_data.py", line 290, in
result = (float(i[rows]) for i in self.__raw_data)
ValueError: could not convert string to float: --
ticker = '2317' month =12 stock = Stock(ticker, month) print stock.price
會出現 error message
Traceback (most recent call last): File "<pyshell#21>", line 1, in
print stock.price
File "C:\Python27\lib\site-packages\grs\fetch_data.py", line 391, in price
return self.serial_price()
File "C:\Python27\lib\site-packages\grs\fetch_data.py", line 291, in serial_price
return list(result)
File "C:\Python27\lib\site-packages\grs\fetch_data.py", line 290, in
result = (float(i[rows]) for i in self.__raw_data)
ValueError: could not convert string to float: --