while True: api.wait_update() print(time_to_datetime(ticks[0].iloc[-1].datetime))
为什么以上代码只能输出一个时间?
tick是一个dataframe格式数据,.iloc[-1]表示的是取的最后一个数据