{"id":13045,"date":"2021-02-26T10:43:37","date_gmt":"2021-02-26T10:43:37","guid":{"rendered":"https:\/\/club.informatix.co.jp\/?p=13045"},"modified":"2024-10-31T03:02:46","modified_gmt":"2024-10-31T03:02:46","slug":"python%e3%81%a7%e9%9b%86%e5%90%88%e3%81%ae%e8%a8%88%e7%ae%97%ef%bd%9cpython%e3%81%a7%e6%95%b0%e5%ad%a6%e3%82%92%e5%ad%a6%e3%81%bc%e3%81%86%ef%bc%81%e6%a1%9c%e4%ba%95%e9%80%b2%e3%81%aepython%ef%bc%8bma","status":"publish","type":"post","link":"https:\/\/club.informatix.co.jp\/?p=13045","title":{"rendered":"\u96c6\u5408\u306e\u8a08\u7b97\uff5cPython\u3067\u6570\u5b66\u3092\u5b66\u307c\u3046\uff01 \u7b2c6\u56de"},"content":{"rendered":"<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_82_2 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">\u76ee\u6b21<\/p>\n<label for=\"ez-toc-cssicon-toggle-item-69fdbdf865dc2\" class=\"ez-toc-cssicon-toggle-label\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/label><input type=\"checkbox\"  id=\"ez-toc-cssicon-toggle-item-69fdbdf865dc2\" checked aria-label=\"Toggle\" \/><nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/club.informatix.co.jp\/?p=13045\/#%E9%9B%86%E5%90%88%E3%81%A8%E3%83%AA%E3%82%B9%E3%83%88%E3%82%92%E6%AF%94%E3%81%B9%E3%82%8B\" >\u96c6\u5408\u3068\u30ea\u30b9\u30c8\u3092\u6bd4\u3079\u308b<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/club.informatix.co.jp\/?p=13045\/#%E7%A9%BA%E9%9B%86%E5%90%88%E3%81%AE%E7%94%9F%E6%88%90\" >\u7a7a\u96c6\u5408\u306e\u751f\u6210<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/club.informatix.co.jp\/?p=13045\/#%E9%9B%86%E5%90%88%E3%81%AE%E7%94%9F%E6%88%90\" >\u96c6\u5408\u306e\u751f\u6210<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/club.informatix.co.jp\/?p=13045\/#%E9%9B%86%E5%90%88%E3%81%AE%E5%92%8C\" >\u96c6\u5408\u306e\u548c<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/club.informatix.co.jp\/?p=13045\/#%E9%9B%86%E5%90%88%E3%81%AE%E5%B7%AE\" >\u96c6\u5408\u306e\u5dee<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/club.informatix.co.jp\/?p=13045\/#%E9%9B%86%E5%90%88%E3%81%AE%E7%A9%8D\" >\u96c6\u5408\u306e\u7a4d<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/club.informatix.co.jp\/?p=13045\/#%E6%AF%94%E8%BC%83%E6%BC%94%E7%AE%97\" >\u6bd4\u8f03\u6f14\u7b97<\/a><\/li><\/ul><\/nav><\/div>\n\n<h2><span class=\"ez-toc-section\" id=\"%E9%9B%86%E5%90%88%E3%81%A8%E3%83%AA%E3%82%B9%E3%83%88%E3%82%92%E6%AF%94%E3%81%B9%E3%82%8B\"><\/span>\u96c6\u5408\u3068\u30ea\u30b9\u30c8\u3092\u6bd4\u3079\u308b<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p><a href=\"https:\/\/club.informatix.co.jp\/?p=12684\" target=\"_blank\" rel=\"noopener\">\u524d\u56de<\/a>\u306f\u7d20\u6570\u5224\u5b9a\u30d7\u30ed\u30b0\u30e9\u30e0\uff08prime1\u304b\u3089prime 4\uff09\u3092\u7d39\u4ecb\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>\u7d20\u6570\u3068\u3044\u3048\u3070\u30a8\u30e9\u30c8\u30b9\u30c6\u30cd\u30b9\u306e\u7be9\uff08\u3075\u308b\u3044\uff09\u304c\u6709\u540d\u306a\u306e\u3067\u3001Python\u3067\u30a8\u30e9\u30c8\u30b9\u30c6\u30cd\u30b9\u306e\u7be9\u3092\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u3059\u308b\u3053\u3068\u3092\u76ee\u6307\u3057\u307e\u3059\u3002<\/p>\n<p>\u305d\u3053\u3067\u6d3b\u8e8d\u3059\u308b\u306e\u304cPython\u306b\u3088\u308b\u96c6\u5408\u306e\u8a08\u7b97\u3067\u3059\u3002\u30a4\u30f3\u30bf\u30e9\u30af\u30c6\u30a3\u30d6\u30e2\u30fc\u30c9\u3067\u78ba\u8a8d\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<p>\u30ea\u30b9\u30c8\u306f[]\u3092\u7528\u3044\u3066\u30c7\u30fc\u30bf\u3092\u56f2\u307f\u307e\u3059\u3002\u30c7\u30fc\u30bf\u3092\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u3067\u7ba1\u7406\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>&gt;&gt;&gt; L = [&#8216;a&#8217;, &#8216;a&#8217;, &#8216;a&#8217;, &#8216;b&#8217;, &#8216;b&#8217;, &#8216;c&#8217;]<br \/>\n&gt;&gt;&gt; L<br \/>\n&gt;&gt;&gt; [&#8216;a&#8217;, &#8216;a&#8217;, &#8216;a&#8217;, &#8216;b&#8217;, &#8216;b&#8217;, &#8216;c&#8217;]<br \/>\n&gt;&gt;&gt; L[0]<br \/>\n&gt;&gt;&gt; &#8216;a&#8217;<br \/>\n&gt;&gt;&gt; L[5]<br \/>\n&gt;&gt;&gt; &#8216;c&#8217;<br \/>\n&gt;&gt;&gt; print(type(L))<br \/>\n&gt;&gt;&gt; &lt;class &#8216;list&#8217;&gt;<\/p>\n<p>\u305d\u308c\u306b\u5bfe\u3057\u3066\u3001\u96c6\u5408\u306f{}\u3092\u7528\u3044\u3066\u30c7\u30fc\u30bf\u3092\u56f2\u307f\u307e\u3059\u3002\u4e0a\u3068\u540c\u3058\u30c7\u30fc\u30bf\u3092{}\u3067\u56f2\u3093\u3067\u307f\u307e\u3059\u3002<\/p>\n<p>&gt;&gt;&gt; A = {&#8216;a&#8217;, &#8216;a&#8217;, &#8216;a&#8217;, &#8216;b&#8217;, &#8216;b&#8217;, &#8216;c&#8217;}<br \/>\n&gt;&gt;&gt; A<br \/>\n&gt;&gt;&gt; {&#8216;a&#8217;, &#8216;c&#8217;, &#8216;b&#8217;}<br \/>\n&gt;&gt;&gt; print(type(A))<br \/>\n&gt;&gt;&gt; &lt;class &#8216;set&#8217;&gt;<\/p>\n<p>\u3053\u308c\u304b\u3089\u308f\u304b\u308b\u3088\u3046\u306b\u3001Python\u306e\u96c6\u5408\u306f\u8981\u7d20\u306e\u91cd\u8907\u3092\u81ea\u52d5\u3067\u6392\u9664\u3057\u3066\u304f\u308c\u308b\u4fbf\u5229\u306a\u6a5f\u80fd\u3092\u6301\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u305d\u3057\u3066\u3001{&#8216;a&#8217;, &#8216;c&#8217;, &#8216;b&#8217;}\u304b\u3089\u308f\u304b\u308b\u3088\u3046\u306b\u3001\u96c6\u5408\u306e\u8981\u7d20\u306b\u306f\u9806\u5e8f\u306e\u60c5\u5831\u304c\u4ed8\u968f\u3057\u307e\u305b\u3093\u3002<\/p>\n<p>\u96c6\u5408\u751f\u6210\u6642\u306b\u6307\u5b9a\u3057\u305f\u9806\u5e8f\u3068\u306f\u7570\u306a\u308b\u9806\u756a\u3067\u96c6\u5408\u306e\u8981\u7d20\u304c\u51fa\u529b\u3055\u308c\u307e\u3059\u3002<\/p>\n<h2><span class=\"ez-toc-section\" id=\"%E7%A9%BA%E9%9B%86%E5%90%88%E3%81%AE%E7%94%9F%E6%88%90\"><\/span>\u7a7a\u96c6\u5408\u306e\u751f\u6210<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>&gt;&gt;&gt; P = {}<br \/>\n&gt;&gt;&gt; print(P)<br \/>\n&gt;&gt;&gt; {}<br \/>\n&gt;&gt;&gt; print(type(P))<br \/>\n&gt;&gt;&gt; &lt;class &#8216;dict&#8217;&gt;<\/p>\n<p>\u7a7a\u96c6\u5408\u306f{}\u3068\u601d\u3044\u304d\u3084\u3001{}\u306f\u8f9e\u66f8dict\u578b\u3068\u306a\u308a\u307e\u3059\u3002<br \/>\n\u7a7a\u96c6\u5408\u3092\u751f\u6210\u3059\u308b\u306b\u306fset()\u3092\u7528\u3044\u307e\u3059\u3002<\/p>\n<p>&gt;&gt;&gt; Q = set()<br \/>\n&gt;&gt;&gt; print(Q)<br \/>\n&gt;&gt;&gt; set()<br \/>\n&gt;&gt;&gt; print(type(Q))<br \/>\n&gt;&gt;&gt; &lt;class &#8216;set&#8217;&gt;<\/p>\n<p>\u305f\u3057\u304b\u306b\u96c6\u5408set\u578b\u3067\u3059\u3002<\/p>\n<h2><span class=\"ez-toc-section\" id=\"%E9%9B%86%E5%90%88%E3%81%AE%E7%94%9F%E6%88%90\"><\/span>\u96c6\u5408\u306e\u751f\u6210<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>2\u3064\u306e\u96c6\u5408\u3092\u751f\u6210\u3057\u3001\u96c6\u5408\u6f14\u7b97\u3092\u78ba\u8a8d\u3057\u3066\u307f\u307e\u3059\u3002\u548c\u30fb\u5dee\u30fb\u7a4d\u30fb\u5bfe\u79f0\u5dee\u30fb\u4e00\u81f4\u30fb\u4e0d\u4e00\u81f4\u30fb\u5305\u542b\u95a2\u4fc2\u3068\u3044\u3063\u305f\u6f14\u7b97\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u5148\u306b\u751f\u6210\u3057\u305f\u96c6\u5408{&#8216;a&#8217;, &#8216;c&#8217;, &#8216;b&#8217;}\u306fset()\u3092\u7528\u3044\u3066set(&#8216;abc&#8217;)\u3068\u3059\u308c\u3070\u751f\u6210\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>&gt;&gt;&gt; A = set(&#8216;abc&#8217;)<br \/>\n&gt;&gt;&gt; B = set(&#8216;bcde&#8217;)<br \/>\n&gt;&gt;&gt; print(A)<br \/>\n&gt;&gt;&gt; {&#8216;a&#8217;, &#8216;c&#8217;, &#8216;b&#8217;}<br \/>\n&gt;&gt;&gt; print(B)<br \/>\n&gt;&gt;&gt; {&#8216;e&#8217;, &#8216;c&#8217;, &#8216;d&#8217;, &#8216;b&#8217;}<\/p>\n<p><img decoding=\"async\" class=\"wp-image-13048 size-medium aligncenter\" src=\"https:\/\/club.informatix.co.jp\/wp-content\/uploads\/2021\/02\/20210228-1-300x210.jpg\" alt=\"\" width=\"300\" height=\"210\" srcset=\"https:\/\/club.informatix.co.jp\/wp-content\/uploads\/2021\/02\/20210228-1-300x210.jpg 300w, https:\/\/club.informatix.co.jp\/wp-content\/uploads\/2021\/02\/20210228-1.jpg 605w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/p>\n<p>\u3053\u306e\u96c6\u5408A\u3068B\u306e\u548c\u30fb\u5dee\u30fb\u7a4d\u3092\u8a08\u7b97\u3057\u3066\u307f\u307e\u3059\u3002<\/p>\n<h2><span class=\"ez-toc-section\" id=\"%E9%9B%86%E5%90%88%E3%81%AE%E5%92%8C\"><\/span>\u96c6\u5408\u306e\u548c<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>2\u3064\u306e\u96c6\u5408\u306e\u548c\u96c6\u5408A\u222aB\uff08A\u307e\u305f\u306fB\uff09\u306f\u3001A|B\u3067\u5f97\u3089\u308c\u307e\u3059\u3002<\/p>\n<p>&gt;&gt;&gt; A|B<br \/>\n&gt;&gt;&gt; {&#8216;a&#8217;, &#8216;c&#8217;, &#8216;e&#8217;, &#8216;d&#8217;, &#8216;b&#8217;}<\/p>\n<p><img decoding=\"async\" class=\"wp-image-13049 size-medium aligncenter\" src=\"https:\/\/club.informatix.co.jp\/wp-content\/uploads\/2021\/02\/20210228-2-300x210.jpg\" alt=\"\" width=\"300\" height=\"210\" srcset=\"https:\/\/club.informatix.co.jp\/wp-content\/uploads\/2021\/02\/20210228-2-300x210.jpg 300w, https:\/\/club.informatix.co.jp\/wp-content\/uploads\/2021\/02\/20210228-2.jpg 605w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/p>\n<h2><span class=\"ez-toc-section\" id=\"%E9%9B%86%E5%90%88%E3%81%AE%E5%B7%AE\"><\/span>\u96c6\u5408\u306e\u5dee<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>2\u3064\u306e\u96c6\u5408\u306e\u5dee\u96c6\u5408\u306f\u3001A-B\u3067\u5f97\u3089\u308c\u307e\u3059\u3002<\/p>\n<p>&gt;&gt;&gt; A-B<br \/>\n&gt;&gt;&gt; {&#8216;a&#8217;}<br \/>\n&gt;&gt;&gt; B-A<br \/>\n&gt;&gt;&gt; {&#8216;d&#8217;, &#8216;e&#8217;}<\/p>\n<p><img decoding=\"async\" class=\"wp-image-13050 size-medium aligncenter\" src=\"https:\/\/club.informatix.co.jp\/wp-content\/uploads\/2021\/02\/20210228-3-220x300.jpg\" alt=\"\" width=\"220\" height=\"300\" srcset=\"https:\/\/club.informatix.co.jp\/wp-content\/uploads\/2021\/02\/20210228-3-220x300.jpg 220w, https:\/\/club.informatix.co.jp\/wp-content\/uploads\/2021\/02\/20210228-3.jpg 605w\" sizes=\"(max-width: 220px) 100vw, 220px\" \/><\/p>\n<h2><span class=\"ez-toc-section\" id=\"%E9%9B%86%E5%90%88%E3%81%AE%E7%A9%8D\"><\/span>\u96c6\u5408\u306e\u7a4d<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>2\u3064\u306e\u96c6\u5408\u306e\u7a4d\u96c6\u5408A\u2229B\uff08A\u304b\u3064B\uff09\u306f\u3001A&amp;B\u3067\u5f97\u3089\u308c\u307e\u3059\u3002<br \/>\n&gt;&gt;&gt; A&amp;B<br \/>\n&gt;&gt;&gt; {&#8216;c&#8217;, &#8216;b&#8217;}<\/p>\n<p><img decoding=\"async\" class=\"wp-image-13051 size-medium aligncenter\" src=\"https:\/\/club.informatix.co.jp\/wp-content\/uploads\/2021\/02\/20210228-4-300x210.jpg\" alt=\"\" width=\"300\" height=\"210\" srcset=\"https:\/\/club.informatix.co.jp\/wp-content\/uploads\/2021\/02\/20210228-4-300x210.jpg 300w, https:\/\/club.informatix.co.jp\/wp-content\/uploads\/2021\/02\/20210228-4.jpg 605w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/p>\n<h2><span class=\"ez-toc-section\" id=\"%E6%AF%94%E8%BC%83%E6%BC%94%E7%AE%97\"><\/span>\u6bd4\u8f03\u6f14\u7b97<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Python\u306b\u306f\u96c6\u5408\u3069\u3046\u3057\u306e\u6bd4\u8f03\u3092\u3059\u308b\u6bd4\u8f03\u6f14\u7b97\u304c\u88c5\u5099\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u6b21\u306e3\u3064\u306e\u96c6\u5408\u3092\u6e96\u5099\u3057\u307e\u3059\u3002<\/p>\n<p>&gt;&gt;&gt; A = set(&#8216;ab&#8217;)<br \/>\n&gt;&gt;&gt; B = set(&#8216;abcde&#8217;)<br \/>\n&gt;&gt;&gt; C = set(&#8216;daecb&#8217;)<br \/>\n&gt;&gt;&gt; A<br \/>\n&gt;&gt;&gt; {&#8216;a&#8217;, &#8216;b&#8217;}<br \/>\n&gt;&gt;&gt; B<br \/>\n&gt;&gt;&gt; {&#8216;a&#8217;, &#8216;c&#8217;, &#8216;e&#8217;, &#8216;b&#8217;, &#8216;d&#8217;}<br \/>\n&gt;&gt;&gt; C<br \/>\n&gt;&gt;&gt; {&#8216;c&#8217;, &#8216;a&#8217;, &#8216;e&#8217;, &#8216;b&#8217;, &#8216;d&#8217;}<\/p>\n<p><img decoding=\"async\" class=\"wp-image-13047 size-medium aligncenter\" src=\"https:\/\/club.informatix.co.jp\/wp-content\/uploads\/2021\/02\/20210228-5-257x300.jpg\" alt=\"\" width=\"257\" height=\"300\" srcset=\"https:\/\/club.informatix.co.jp\/wp-content\/uploads\/2021\/02\/20210228-5-257x300.jpg 257w, https:\/\/club.informatix.co.jp\/wp-content\/uploads\/2021\/02\/20210228-5.jpg 605w\" sizes=\"(max-width: 257px) 100vw, 257px\" \/><\/p>\n<p>\u96c6\u5408A\u3068\u96c6\u5408B\u304c\u7b49\u3057\u3044\u304b\u5426\u304b\u3092\u8abf\u3079\u308b\u306b\u306fA == B\u3068\u3057\u307e\u3059\u3002<br \/>\n&gt;&gt;&gt; A == B<br \/>\n&gt;&gt;&gt; False<\/p>\n<p>\u96c6\u5408A\u3068\u96c6\u5408B\u306f\u5b8c\u5168\u4e00\u81f4\uff08A == B\uff09\u3057\u306a\u3044\u306e\u3067\u3001False\u304c\u8fd4\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>&gt;&gt;&gt; B == C<br \/>\n&gt;&gt;&gt; True<\/p>\n<p>\u96c6\u5408B\u3068\u96c6\u5408C\u306f\u5b8c\u5168\u4e00\u81f4\uff08B == C\uff09\u3059\u308b\u306e\u3067\u3001True\u304c\u8fd4\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>\u96c6\u5408A\u3068\u96c6\u5408B\u306e\u95a2\u4fc2\u306f\u300c\u96c6\u5408A\u306f\u96c6\u5408B\u306e\u90e8\u5206\u96c6\u5408\u3067\u3042\u308b\u300d\u3068\u3044\u3044\u3001A\u2282B\u3068\u8868\u3057\u307e\u3059\u3002<\/p>\n<p>&gt;&gt;&gt; A &lt; B<br \/>\n&gt;&gt;&gt; True<br \/>\n&gt;&gt;&gt; B &lt; A<br \/>\n&gt;&gt;&gt; False<\/p>\n<p>\u96c6\u5408B\u3068\u96c6\u5408C\u306e\u95a2\u4fc2\u306fB = C\u3067\u3059\u3002<\/p>\n<p>&gt;&gt;&gt; B &lt; C<br \/>\n&gt;&gt;&gt; False<br \/>\n&gt;&gt;&gt; B &lt;= C<br \/>\n&gt;&gt;&gt; True<\/p>\n<p>\u901a\u5e38\u3001\u6570\u5b66\u3067\u306f\u300c\u90e8\u5206\u96c6\u5408\u300d\u3068\u3044\u3046\u7528\u8a9e\u306b\u306f\u7b49\u3057\u3044\u5834\u5408\u304c\u542b\u307e\u308c\u307e\u3059\u3002A=B\u306e\u3068\u304d\u3001A\u306fB\u306e\u90e8\u5206\u96c6\u5408\u3068\u3044\u3044\u307e\u3059\uff08A\u306fB\u306b\u542b\u307e\u308c\u308b\u304b\u3089\u3067\u3059\uff09\u3002<\/p>\n<p>\u4e0a\u306e\u8a08\u7b97\u304b\u3089\u5206\u304b\u308b\u3088\u3046\u306bPython\u3067\u306fB &lt; C\u306bB = C\u306f\u542b\u307e\u308c\u306a\u3044\u306e\u3067\u3001B&lt;C\u306f\u90e8\u5206\u96c6\u5408B\u2282C\u3092\u8868\u3057\u307e\u305b\u3093\u3002\u90e8\u5206\u96c6\u5408B\u2282C\u3092\u5224\u5b9a\u3059\u308b\u306b\u306fB&lt;=C\u3068\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p><a href=\"https:\/\/club.informatix.co.jp\/?p=13457\" target=\"_blank\" rel=\"noopener\">\u6b21\u56de<\/a>\u306fset()\u3092\u7528\u3044\u3066\u7d20\u6570\u3092\u30ea\u30b9\u30c8\u30a2\u30c3\u30d7\u3059\u308b\u30a8\u30e9\u30c8\u30b9\u30c6\u30cd\u30b9\u306e\u7be9\u3092\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u3057\u3066\u307f\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u96c6\u5408\u3068\u30ea\u30b9\u30c8\u3092\u6bd4\u3079\u308b \u524d\u56de\u306f\u7d20\u6570\u5224\u5b9a\u30d7\u30ed\u30b0\u30e9\u30e0\uff08prime1\u304b\u3089prime 4\uff09\u3092\u7d39\u4ecb\u3057\u307e\u3057\u305f\u3002 \u7d20\u6570\u3068\u3044\u3048\u3070\u30a8\u30e9\u30c8\u30b9\u30c6\u30cd\u30b9\u306e\u7be9\uff08\u3075\u308b\u3044\uff09\u304c\u6709\u540d\u306a\u306e\u3067\u3001Python\u3067\u30a8\u30e9\u30c8\u30b9\u30c6\u30cd\u30b9\u306e\u7be9\u3092\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u3059 &#8230; <\/p>\n","protected":false},"author":4,"featured_media":13051,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,464,526],"tags":[65],"class_list":["post-13045","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-4","category-hito-star-mathmatics","category-526","tag-python"],"jetpack_featured_media_url":"https:\/\/club.informatix.co.jp\/wp-content\/uploads\/2021\/02\/20210228-4.jpg","_links":{"self":[{"href":"https:\/\/club.informatix.co.jp\/index.php?rest_route=\/wp\/v2\/posts\/13045","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/club.informatix.co.jp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/club.informatix.co.jp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/club.informatix.co.jp\/index.php?rest_route=\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/club.informatix.co.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=13045"}],"version-history":[{"count":14,"href":"https:\/\/club.informatix.co.jp\/index.php?rest_route=\/wp\/v2\/posts\/13045\/revisions"}],"predecessor-version":[{"id":20731,"href":"https:\/\/club.informatix.co.jp\/index.php?rest_route=\/wp\/v2\/posts\/13045\/revisions\/20731"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/club.informatix.co.jp\/index.php?rest_route=\/wp\/v2\/media\/13051"}],"wp:attachment":[{"href":"https:\/\/club.informatix.co.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=13045"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/club.informatix.co.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=13045"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/club.informatix.co.jp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=13045"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}