{"height":"190","version":"1.0","published":"2009-12-09 01:55:29","image_url":null,"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Ffgshun.hatenablog.com%2Fentry%2F20091209%2F1260377729\" title=\"Python \u30ec\u30b7\u30d4\u8ffd\u52a0\u3001\u6587\u5b57\u5217\u306e\u4e00\u90e8\u3092\u7279\u5b9a\u306e\u6587\u5b57\u3067\u57cb\u3081\u308b - \u9280\u6708\u306e\u7b26\u53f7\" 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","blog_title":"\u9280\u6708\u306e\u7b26\u53f7","blog_url":"https://fgshun.hatenablog.com/","provider_name":"Hatena Blog","categories":["Python"],"title":"Python \u30ec\u30b7\u30d4\u8ffd\u52a0\u3001\u6587\u5b57\u5217\u306e\u4e00\u90e8\u3092\u7279\u5b9a\u306e\u6587\u5b57\u3067\u57cb\u3081\u308b","author_name":"fgshun","width":"100%","description":"\u300c068:\u6587\u5b57\u5217\u306e\u4e00\u90e8\u3092\u7279\u5b9a\u306e\u6587\u5b57\u3067\u57cb\u3081\u308b\u300d\u3092\u8ffd\u52a0\u3002Ruby \u30ec\u30b7\u30d4\u30d6\u30c3\u30af \u7b2c\uff12\u7248 \u306b\u306f Password: PythonRecipe \u306e\u3088\u3046\u306a\u30c6\u30ad\u30b9\u30c8\u3092 Password: ************ \u306b\u7f6e\u304d\u63db\u3048\u308b\u4f8b\u304c\u8f09\u3063\u3066\u3044\u305f\u306e\u3067\u3001\u3053\u308c\u306b\u5247\u3063\u305f\u30b3\u30fc\u30c9\u3092\u3002 # coding: utf-8 import re def hide(pattern, string, rep=u'*', hide_group=1): u\"\"\"\u6b63\u898f\u8868\u73fe pattern \u306e hide_group \u90e8\u5206\u3092 rep \u306b\u7f6e\u304d\u63db\u3048\u308b >>> hide(u'Password: (.*)', u'Password: PythonRec\u2026","author_url":"https://blog.hatena.ne.jp/fgshun/","url":"https://fgshun.hatenablog.com/entry/20091209/1260377729","provider_url":"https://hatena.blog"}