问题标签 [fromfile]

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 投票
2 回答
37 浏览

python - 使用 numpy.fromfile 读取文件时如何跳过行?

我正在阅读一个.pksc包含大量天文物体的坐标和速度的文件。我正在阅读

该文件可以在这里找到。它非常大,我想跳过第一个m对象(m如果文件中有行,则对应于这些对象的第一行)。我该怎么做,我看不到跳过的选项?或者,能够跳过k文件中的最后一个对象也很好。天呐!