可以这么做:
for a, b in zip(data['close'].index, data['close'].values):
print(a,b)
也可以这么做:
for a, b in data['close'].items():
print(a,b)
可以这么做:
for a, b in zip(data['close'].index, data['close'].values):
print(a,b)
也可以这么做:
for a, b in data['close'].items():
print(a,b)