{"width":"100%","blog_title":"orangain flavor","type":"rich","categories":["python"],"published":"2010-05-03 00:29:15","height":"190","author_url":"https://blog.hatena.ne.jp/mi_kattun/","blog_url":"https://orangain.hatenablog.com/","description":"Python\u306e\u6587\u5b57\u5217\u7f6e\u63db\u306f\u3001\u7f6e\u63db\u306e\u4ed5\u65b9\u3084\u30d0\u30fc\u30b8\u30e7\u30f3\u306b\u3088\u3063\u3066\u5229\u7528\u3059\u3079\u304d\u30e2\u30b8\u30e5\u30fc\u30eb\u304c\u7570\u306a\u3063\u3066\u304a\u308a\u3001\u5c11\u3057\u308f\u304b\u308a\u306b\u304f\u3044\u306e\u3067\u3001Python 2.x\u3067\u306estr\u3068unicode\u30013.x\u3067\u306estr\u3067\u306e\u7f6e\u63db\u3092\u307e\u3068\u3081\u307e\u3059\u3002 \u6587\u5b57\u5217\u306b\u3088\u308b\u5358\u7d14\u306a\u7f6e\u63db (str.replace) str (2.x) / unicode / str (3.x)\u306e\u3069\u308c\u3067\u3082\u307b\u307c\u540c\u3058\u3067\u3059\u3002 src = 'I like orange.' dst = src.replace('orange', 'apple') # 'I like apple.' str.replace\u306e\u7b2c3\u5f15\u6570\u3067\u7f6e\u63db\u3092\u884c\u3046\u6700\u5927\u56de\u6570\u3092\u6307\u5b9a\u3067\u304d\u307e\u3059\u3002 str.replace (2.\u2026","title":"Python\u3067\u306e\u6587\u5b57\u5217\u7f6e\u63db\u3092\u30de\u30b9\u30bf\u30fc\u3059\u308b","version":"1.0","author_name":"mi_kattun","provider_name":"Hatena Blog","url":"https://orangain.hatenablog.com/entry/20100503/1272900555","provider_url":"https://hatena.blog","image_url":null,"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Forangain.hatenablog.com%2Fentry%2F20100503%2F1272900555\" title=\"Python\u3067\u306e\u6587\u5b57\u5217\u7f6e\u63db\u3092\u30de\u30b9\u30bf\u30fc\u3059\u308b - orangain flavor\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>"}