問題タブ [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 投票する
0 に答える
19 参照

python - Python 3でnp.fromfileで特定の範囲のデータを選択するには?

テキストが最初に来て、次に数値が来る.datファイルがあります。

np.fromfile には引数「count = ...」がありますが、最初の文字をいくつかまで取ることができますが、逆にするにはどうすればよいですか? つまり、目的の値の後のすべての文字です。または、特定の範囲を選択する方法は?

ありがとう