一周中的每一天分别开盘收盘
我试图写下每天的开盘价和收盘价,即我想每天写下来,因此星期一将把星期一的开盘收盘价写到 var 变量中,而星期二将写下开盘收盘价星期二。然后,我将每天将这些值放入一个数组中,我可以做到这一点,但我无法想出一种有效获取这些数据的方法。我已经尝试过与 dayofweek 的各种组合,但失败了。
I'm trying to write down the open and close price of each day, namely I want to write it down day by day and hence that Monday will write down the open close for Monday into a var variable and Tuesday will write down the open close for Tuesday. I will then put these values into an array for each day, which I'm able to do, but I can't come up with a method to get this data efficiently. I've already tried various combinations with dayofweek, but I'm failing.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)