{"provider_name":"Hatena Blog","type":"rich","image_url":null,"height":"190","blog_url":"https://adbird.hatenablog.com/","author_name":"adbird","blog_title":"adbird\uff08\u5e83\u544a\u9ce5\uff09 \u5099\u5fd8\u9332","published":"2023-04-12 10:24:48","author_url":"https://blog.hatena.ne.jp/adbird/","categories":["Python"],"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fadbird.hatenablog.com%2Fentry%2F2023%2F04%2F12%2F102448\" title=\"Python \u5099\u5fd8\u9332 - adbird\uff08\u5e83\u544a\u9ce5\uff09 \u5099\u5fd8\u9332\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","url":"https://adbird.hatenablog.com/entry/2023/04/12/102448","version":"1.0","title":"Python \u5099\u5fd8\u9332","provider_url":"https://hatena.blog","width":"100%","description":"\u968f\u6642\u66f4\u65b0\u3057\u3066\u3044\u304f\u3002 1\u884c\u76ee\u3092\u524a\u9664 sed -i '1 d' bookmarks.csv \u3068\u540c\u3058\u3053\u3068\u3092\u3059\u308b\u306b\u306f with open(\"bookmarks.csv\", \"r\", encoding=\"utf-8\") as f: lines = f.readlines()[1:] # \u6700\u521d\u306e\u884c\u3092\u53d6\u308a\u9664\u304f with open(\"bookmarks.csv\", \"w\", encoding=\"utf-8\") as f: f.writelines(lines)"}