摘要: tushare是获取行情数据的一款免费软件使用方法很简单,先安装:pip install tushare然后import tushare as ts即可。 data = ts.get_k_data("600000", ktype='60') 阅读全文
posted @ 2017-06-26 17:42 绿色的麦田 阅读(1197) 评论(0) 推荐(0) 编辑
摘要: # -*- coding: utf-8 -*- import numpy as np student = np.dtype({'names':['name', 'age', 'weight'], 'formats': ['S32', 'i', 'f']}, align = True) a = np.array([("Zhang", 32, 65.5), ("Wang", 24, 55.2)], ... 阅读全文
posted @ 2017-06-26 17:41 绿色的麦田 阅读(8233) 评论(0) 推荐(1) 编辑