stock_basics.py 文件源码

python
阅读 38 收藏 0 点赞 0 评论 0

项目:OdooQuant 作者: haogefeifei 项目源码 文件源码
def get_yesterday_price(self, stock_code):
        """
        ??????????
        :param stock_code:
        :return:
        """
        code = self._code_to_symbol(stock_code)
        data = urllib.urlopen("http://hq.sinajs.cn/list=" + code).read().decode('gb2312')
        stockInfo = data.split(',')
        currentPrice = string.atof(stockInfo[2])
        return float(currentPrice)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号