{"blog_title":"methane\u306e\u30d6\u30ed\u30b0","author_name":"methane","version":"1.0","width":"100%","image_url":null,"provider_url":"https://hatena.blog","blog_url":"https://methane.hatenablog.jp/","title":" union\u3068intersection","author_url":"https://blog.hatena.ne.jp/methane/","provider_name":"Hatena Blog","type":"rich","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmethane.hatenablog.jp%2Fentry%2F20100501%2F1272691295\" title=\" union\u3068intersection - methane\u306e\u30d6\u30ed\u30b0\" 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"],"url":"https://methane.hatenablog.jp/entry/20100501/1272691295","height":"190","description":"http://blog.livedoor.jp/dankogai/archives/51441112.html\u4e00\u65b9\u3001Python\u306fset\u306e\u6f14\u7b97\u5b50\u3092\u5b9a\u7fa9\u3057\u305f\u3002 >>> a = \"0 1 2 3 4 5 6 7 8 9\".split() >>> b = \"0 2 4 6 8 10 12 14 16 18\".split() >>> print set(a) & set(b) set(['0', '8', '2', '4', '6']) >>> print set(a) | set(b) set(['10', '12', '14', '16', '18', '1', '0', '3', '2', '5\u2026","published":"2010-05-01 14:21:35"}