{"categories":["Python"],"title":"\u6587\u5b57\u5217\u306e\u5148\u982d\u3068\u672b\u5c3e\u304b\u3089\u6307\u5b9a\u3057\u305f\u6587\u5b57\u3092\u53d6\u308a\u9664\u304f - Python","provider_name":"Hatena Blog","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftmg0525.hatenadiary.jp%2Fentry%2F2017%2F10%2F19%2F232622\" title=\"\u6587\u5b57\u5217\u306e\u5148\u982d\u3068\u672b\u5c3e\u304b\u3089\u6307\u5b9a\u3057\u305f\u6587\u5b57\u3092\u53d6\u308a\u9664\u304f - Python - TIL\" 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://tmg0525.hatenadiary.jp/entry/2017/10/19/232622","author_url":"https://blog.hatena.ne.jp/tmg1998/","provider_url":"https://hatena.blog","published":"2017-10-19 23:26:22","height":"190","blog_title":"TIL","width":"100%","image_url":null,"description":"Python\u3067\u6587\u5b57\u5217\u306e\u5148\u982d\u3068\u672b\u5c3e\u304b\u3089\u6307\u5b9a\u3057\u305f\u6587\u5b57\u3092\u53d6\u308a\u9664\u3044\u304f\u306b\u306fstr\u306estrip()\u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u3046\u3002 >>> s2 = 'google.com' >>> s2.strip('gm') 'oogle.co' >>> s2.strip('gmo') 'le.c' \u5148\u982d\u3068\u672b\u5c3e\u304b\u3089\u53d6\u308a\u9664\u304f\u305f\u3081\u3001\u4e2d\u9593\u306b\u3042\u308b\u3082\u306e\u306f\u53d6\u308a\u9664\u304b\u308c\u306a\u3044\u3002\u307e\u305f\u3001\u5f15\u6570\u306b\u6307\u5b9a\u3057\u305f\u6587\u5b57\u304c\u542b\u307e\u308c\u3066\u3044\u306a\u304f\u3066\u3082\u554f\u984c\u306f\u306a\u3044\u3002 >>> s2.strip('gmoani') 'le.c' \u5f15\u6570\u3067\u6307\u5b9a\u3057\u305f\u6587\u5b57\u304c\u7d9a\u304f\u307e\u3067\u524a\u9664\u3057\u3066\u308b\u611f\u3058\u306a\u306e\u304b\u306a\uff1f \u53c2\u8003\u6587\u732e 4. Built-in Types \u2014 Python 3.6.3 documentation","blog_url":"https://tmg0525.hatenadiary.jp/","type":"rich","author_name":"tmg1998","version":"1.0"}