{"blog_url":"https://pod.hatenablog.com/","title":"python\u3067\u6539\u884c\u3092normalize\u3059\u308b\u65b9\u6cd5\u306e\u30e1\u30e2","blog_title":"podhmo's diary","provider_url":"https://hatena.blog","height":"190","url":"https://pod.hatenablog.com/entry/2018/09/17/213636","categories":["python","memo"],"provider_name":"Hatena Blog","type":"rich","description":"API\u306fwindows\u5411\u3051\u3001\u73fe\u72b6\u306e\u74b0\u5883\u306fmac(\u306a\u3044\u3057\u306flinux)\u307f\u305f\u3044\u306a\u3053\u3068\u304c\u3042\u3063\u305f\u308a\u3059\u308b\u3002 \u3053\u3046\u3044\u3046\u3068\u304d\u306b\u306f\u3001str.split()\u3067\u306f\u30c0\u30e1\u3001os.linesep\u3092\u4f7f\u3063\u3066split\u3057\u3066\u3082\u30c0\u30e1\u3002 \u7d20\u76f4\u306bstr.splitlines()\u3057\u3066os.linesep\u3067join\u3068\u3044\u3046\u306e\u304c\u826f\u3055\u305d\u3046\u3002 def normalize_linesep_text(text): lines = [line for line in text.rstrip().splitlines()] lines.append(\"\") return os.linesep.join(lines) \u672b\u5c3e\u306b\u5fc5\u305a\u6539\u884c\u5165\u308c\u305f\u3044\u5834\u5408\u306e\u305f\u3081\u306ba\u2026","published":"2018-09-17 21:36:36","author_url":"https://blog.hatena.ne.jp/podhmo/","width":"100%","image_url":null,"author_name":"podhmo","version":"1.0","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fpod.hatenablog.com%2Fentry%2F2018%2F09%2F17%2F213636\" title=\"python\u3067\u6539\u884c\u3092normalize\u3059\u308b\u65b9\u6cd5\u306e\u30e1\u30e2 - podhmo&#39;s diary\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>"}