分析道琼斯工业平均指数,恒生,上证综指,深证成指。
List.append(x)在末尾加入x
任务找出首次跌幅超过-0.6%的涨跌幅数据
找出恒指所有下跌的数据
保证上证综指的日涨跌幅在[-1%,1%]之间
import xlrd
data= xlrd.open_workbook('20190401.xlsx')
table = data.sheet_by_name(u'Sheet1')
DJ_index=table.col_values(1,1
分析道琼斯工业平均指数,恒生,上证综指,深证成指。
List.append(x)在末尾加入x
任务找出首次跌幅超过-0.6%的涨跌幅数据
找出恒指所有下跌的数据
保证上证综指的日涨跌幅在[-1%,1%]之间
import xlrd
data= xlrd.open_workbook('20190401.xlsx')
table = data.sheet_by_name(u'Sheet1')
DJ_index=table.col_values(1,1