问题标签 [skyfield]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
0 回答
10 浏览

python - 夜间飞行时间计算:IndexError:标量变量的索引无效

我正在使用 vsimakhin 的夜间时间计算器 ( https://github.com/vsimakhin/night-time-calculator ) 来计算在给定出发和到达地点和时间的情况下飞行期间的总夜间飞行时间。我是 Python 新手,所以我不确定问题是什么。我收到以下错误:

这是我正在使用的代码:

当它确实有夜间时间时,它会引发错误:

例如:python ./night_time.py LKPR1720LKMT181020200401

但不是为了python ./night_time.py LKPR1220LKMT131020200401