3.00K 浏览
0

while True:
        api.wait_update()
        print(time_to_datetime(ticks[0].iloc[-1].datetime))

为什么以上代码只能输出一个时间?

ringo 已回答的问题 2020年11月4日
0

tick是一个dataframe格式数据,.iloc[-1]表示的是取的最后一个数据

ringo 已回答的问题 2020年11月4日