{"blog_url":"https://python-remrin.hatenadiary.jp/","author_url":"https://blog.hatena.ne.jp/rare_Remrin/","provider_name":"Hatena Blog","height":"190","author_name":"rare_Remrin","blog_title":"Remrin\u306epython\u653b\u7565\u65e5\u8a18","version":"1.0","image_url":null,"url":"https://python-remrin.hatenadiary.jp/entry/2017/05/03/233254","description":"python\u306e\u96c6\u5408\u578bset\u306e\u4f7f\u3044\u65b9\u306b\u3064\u3044\u3066\u3002 \u30fb\u91cd\u8907\u306e\u306a\u3044\u914d\u5217\u3002 \u30fb\u9806\u5e8f\u304c\u306a\u3044\u306e\u3067s[1]\u306e\u3088\u3046\u306a\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u6307\u5b9a\u304c\u3067\u304d\u306a\u3044\u3002 \u30fbin\u30e1\u30bd\u30c3\u30c9\u306b\u3088\u308b\u691c\u7d22\u304c\u9ad8\u901f \u25cb\u751f\u6210 # coding: utf-8 s1 = set() # \u7a7a\u306eset print(s1) # set() print(type(s1)) # <class 'set'> s2 = {1, 1, 2, 2, 3, 4} print(s2) # {1, 2, 3, 4} print(len(s2)) # 4 \u8981\u7d20\u6570 s3 = {} print(type(s3)) # <class 'dict'> list1 = [1, 3, 5, \u2026","published":"2017-05-03 23:32:54","title":"python\u306e\u96c6\u5408\u578b set","categories":["python"],"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fpython-remrin.hatenadiary.jp%2Fentry%2F2017%2F05%2F03%2F233254\" title=\"python\u306e\u96c6\u5408\u578b set - Remrin\u306epython\u653b\u7565\u65e5\u8a18\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","provider_url":"https://hatena.blog","type":"rich","width":"100%"}