{"blog_title":"\u30e1\u30e2\u7f6e\u304d\u5834","url":"https://y0m0r.hateblo.jp/entry/20130722/1374501317","image_url":null,"blog_url":"https://y0m0r.hateblo.jp/","provider_name":"Hatena Blog","provider_url":"https://hatena.blog","author_url":"https://blog.hatena.ne.jp/yuheiomori0718/","published":"2013-07-22 22:55:17","version":"1.0","title":"python\u3067\u6587\u5b57\u5217\u306b\u91cd\u8907\u6587\u5b57\u304c\u3042\u308b\u304b\u3069\u3046\u304b\u30c1\u30a7\u30c3\u30af\u3059\u308b","height":"190","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fy0m0r.hateblo.jp%2Fentry%2F20130722%2F1374501317\" title=\"python\u3067\u6587\u5b57\u5217\u306b\u91cd\u8907\u6587\u5b57\u304c\u3042\u308b\u304b\u3069\u3046\u304b\u30c1\u30a7\u30c3\u30af\u3059\u308b - \u30e1\u30e2\u7f6e\u304d\u5834\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","categories":["python"],"author_name":"yuheiomori0718","type":"rich","description":"# coding=utf-8 def is_unique_chars(s): \"\"\"\u6587\u5b57\u5217\u4e2d\u306b\u91cd\u8907\u3059\u308b\u6587\u5b57\u304c\u3042\u308b\u304b\u3069\u3046\u304b\u30c1\u30a7\u30c3\u30af\u3059\u308b \"\"\" if isinstance(s, str): s = s.decode('utf-8') return len(set(list(s))) == len(s) # ascii assert is_unique_chars(u\"abcdefg\") assert not is_unique_chars(u\"abcdefgg\") # \u30de\u30eb\u30c1\u30d0\u30a4\u30c8\u6587\u5b57(unicode) assert is_unique_chars(u\"\u3042\u3044\u3046\u3048\u304a\") assert not is\u2026","width":"100%"}