{"type":"rich","width":"100%","categories":["python","numpy"],"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fcoffee-guhaw.hateblo.jp%2Fentry%2F2025%2F06%2F25%2F000000\" title=\"\u3010numpy\u3011\u8907\u6570\u306e\u30c6\u30ad\u30b9\u30c8\u30c7\u30fc\u30bf\u3092\u8aad\u307f\u8fbc\u3093\u30671\u3064\u306endarray\u306b\u307e\u3068\u3081\u305f\u3044\u30012\u3064\u306earray\u3092\u7d50\u5408\u3059\u308b - Bus error\u3068Segmentation fault\u306b\u56f0\u3063\u305f\u3089\u898b\u308b\u30d6\u30ed\u30b0\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","provider_name":"Hatena Blog","author_url":"https://blog.hatena.ne.jp/coffee_kabu/","published":"2025-06-25 00:00:00","title":"\u3010numpy\u3011\u8907\u6570\u306e\u30c6\u30ad\u30b9\u30c8\u30c7\u30fc\u30bf\u3092\u8aad\u307f\u8fbc\u3093\u30671\u3064\u306endarray\u306b\u307e\u3068\u3081\u305f\u3044\u30012\u3064\u306earray\u3092\u7d50\u5408\u3059\u308b","blog_title":"Bus error\u3068Segmentation fault\u306b\u56f0\u3063\u305f\u3089\u898b\u308b\u30d6\u30ed\u30b0","url":"https://coffee-guhaw.hateblo.jp/entry/2025/06/25/000000","blog_url":"https://coffee-guhaw.hateblo.jp/","author_name":"coffee_kabu","provider_url":"https://hatena.blog","version":"1.0","image_url":null,"description":"\u3053\u3093\u306a\u611f\u3058\u306e\u30c6\u30ad\u30b9\u30c8\u30c7\u30fc\u30bf\u304c\u3042\u3063\u3066\u3001\u3053\u308c\u3092\u8aad\u307f\u8fbc\u3080 1 21 2 22 3 23 4 24 5 25 2\u5217\u76ee\u306e\u307f\u89e3\u6790\u306b\u4f7f\u3046\u30012\u5217\u76ee\u306e\u307f\u4f7f\u3046\u306e\u30671\u5217\u76ee\u306f\u6368\u3066\u308b import numpy as np fname=\"hoge.txt\" a = (np.loadtxt(fname, unpack=True))[1] unpack\u306e\u30aa\u30d7\u30b7\u30e7\u30f3\u304c\u306a\u3093\u3067\u5fc5\u8981\u304b\u306f\u3044\u304b\u306e\u8a18\u4e8b\u3092\u53c2\u7167\u25a0 \u904e\u53bb\u8a18\u4e8b : Python \u3092\u7528\u3044\u3066\u5b9f\u9a13\u30c7\u30fc\u30bf\u3092\u8aad\u307f\u8fbc\u307f\u3001\u53ef\u8996\u5316\u3059\u308b\u3053\u308c\u30671\u3064\u306e\u30c6\u30ad\u30b9\u30c8\u30d5\u30a1\u30a4\u30eb\u3092ndarray\u306b\u53ce\u7d0d\u306f\u3067\u304d\u305f \u3042\u3068\u306f\u3001\u8907\u6570\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u8aad\u307f\u8fbc\u3093\u30671\u3064\u306b\u307e\u3068\u3081\u308b import numpy as np for i i\u2026","height":"190"}