{"blog_title":"\u8da3\u5473\u3067\u8a08\u7b97\u6d41\u7802\u6c34\u7406 Computational Sediment Hydraulics for Fun Learning ","title":"\u5099\u5fd8\u9332\uff1aPython\u3067\u3069\u3046\u3057\u3088\u3046\u3082\u306a\u3044\u30c6\u30ad\u30b9\u30c8\u30d5\u30a1\u30a4\u30eb\u306e\u8aad\u307f\u8fbc\u307f\u65b9","categories":["R"],"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fcomputational-sediment-hyd.hatenablog.jp%2Fentry%2F2023%2F12%2F13%2F014642\" title=\"\u5099\u5fd8\u9332\uff1aPython\u3067\u3069\u3046\u3057\u3088\u3046\u3082\u306a\u3044\u30c6\u30ad\u30b9\u30c8\u30d5\u30a1\u30a4\u30eb\u306e\u8aad\u307f\u8fbc\u307f\u65b9 - \u8da3\u5473\u3067\u8a08\u7b97\u6d41\u7802\u6c34\u7406 Computational Sediment Hydraulics for Fun Learning \" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","published":"2023-12-13 01:46:42","width":"100%","version":"1.0","url":"https://computational-sediment-hyd.hatenablog.jp/entry/2023/12/13/014642","author_url":"https://blog.hatena.ne.jp/SedimentHydraulics/","blog_url":"https://computational-sediment-hyd.hatenablog.jp/","type":"rich","provider_name":"Hatena Blog","provider_url":"https://hatena.blog","image_url":null,"author_name":"SedimentHydraulics","height":"190","description":"\u30c7\u30fc\u30bf\u3092\u6271\u3063\u3066\u3044\u308b\u3068\u3001\u3069\u3046\u3057\u3088\u3046\u3082\u306a\u3044\u30c6\u30ad\u30b9\u30c8\u30d5\u30a1\u30a4\u30eb\u3063\u3066\u3042\u308b\u3068\u601d\u3044\u307e\u3059\u304c\u3001\u305d\u308c\u3092\u8aad\u307f\u8fbc\u3080\u3068\u304d\u306e\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u3067\u3059\u3002 # \u3068\u308a\u3042\u3048\u305a\u30a8\u30f3\u30b3\u30fc\u30c9\u3092\u6307\u5b9a\u3057\u3066\u958b\u304f with open(filepath, mode='r', encoding='shiftJIS') as response: # skip header n\u56de for _ in range(n) : l = next(response) #try\u6587\u3067\u30d5\u30a1\u30a4\u30eb\u306e\u7d42\u308f\u308a\u307e\u3067(error\u304c\u3067\u308b\u307e\u3067)\u30eb\u30fc\u30d7 try: while True: #\u4e00\u884c\u8aad\u3093\u3067\u6539\u884c\u3092\u7f6e\u63db l = next(response) ll = l.replace('\\n',''\u2026"}