{"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fshuzo-kino.hateblo.jp%2Fentry%2F2015%2F03%2F30%2F232932\" title=\"python\u3067chomp\u7684\u306a\u4e8b\u3092\u3084\u308a\u305f\u3044\u3068\u304d\u306f\u300crstrip\u300d - Bye Bye Moore\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","type":"rich","provider_url":"https://hatena.blog","blog_title":"Bye Bye Moore","width":"100%","height":"190","published":"2015-03-30 23:29:32","blog_url":"https://shuzo-kino.hateblo.jp/","provider_name":"Hatena Blog","image_url":null,"description":"Python\u306erstrip\u30e1\u30bd\u30c3\u30c9\u306f\u672b\u5c3e\u306e\u6539\u884c\u3092\u6d88\u3057\u307e\u3059\u3002 Ruby\u306eString#chomp\u3067\u3059\u306d\u3002 for i in open('./example.yaml'): print(i.rstrip()) #foo: # bar: # - baz # - 3 \u4e00\u5fdc\u3001\u975e\u7834\u58ca\u30e1\u30bd\u30c3\u30c9\u306e\u3088\u3046\u3067\u3059 >>> bar = \"string\\n\\n\" >>> bar 'string\\n\\n' >>> bar.rstrip() 'string' >>> bar 'string\\n\\n'","author_name":"shuzo_kino","title":"python\u3067chomp\u7684\u306a\u4e8b\u3092\u3084\u308a\u305f\u3044\u3068\u304d\u306f\u300crstrip\u300d","version":"1.0","url":"https://shuzo-kino.hateblo.jp/entry/2015/03/30/232932","categories":["python"],"author_url":"https://blog.hatena.ne.jp/shuzo_kino/"}