{"id":9978,"date":"2023-01-16T21:00:00","date_gmt":"2023-01-16T12:00:00","guid":{"rendered":"https:\/\/taki-lab.site\/bocci\/?p=9978"},"modified":"2023-01-16T11:36:43","modified_gmt":"2023-01-16T02:36:43","slug":"%e3%80%90%e6%95%b0%e5%ad%a6%e3%80%91%e3%80%90python%e3%80%91%e3%83%98%e3%83%ad%e3%83%b3%e3%81%ae%e5%85%ac%e5%bc%8f","status":"publish","type":"post","link":"https:\/\/taki-lab.site\/bocci\/?p=9978","title":{"rendered":"\u3010\u6570\u5b66\u3011\u3010PYTHON\u3011\u30d8\u30ed\u30f3\u306e\u516c\u5f0f"},"content":{"rendered":"\n<figure class=\"wp-block-embed is-type-wp-embed is-provider-\u81ea\u5206\u3001\u307c\u3063\u3061\u3067\u3059\u304c\u4f55\u304b\uff1f wp-block-embed-\u81ea\u5206\u3001\u307c\u3063\u3061\u3067\u3059\u304c\u4f55\u304b\uff1f\"><div class=\"wp-block-embed__wrapper\">\n<blockquote class=\"wp-embedded-content\" data-secret=\"RFjD0ldnYB\"><a href=\"https:\/\/taki-lab.site\/bocci\/?p=9577\">\u3010\u6570\u5b66\u3011\u3010PYTHON\u3011\u70b9\u3068\u76f4\u7dda\u306e\u8ddd\u96e2\u3092\u8a08\u7b97\u3059\u308b<\/a><\/blockquote><iframe loading=\"lazy\" class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; clip: rect(1px, 1px, 1px, 1px);\" title=\"&#8220;\u3010\u6570\u5b66\u3011\u3010PYTHON\u3011\u70b9\u3068\u76f4\u7dda\u306e\u8ddd\u96e2\u3092\u8a08\u7b97\u3059\u308b&#8221; &#8212; \u81ea\u5206\u3001\u307c\u3063\u3061\u3067\u3059\u304c\u4f55\u304b\uff1f\" src=\"https:\/\/taki-lab.site\/bocci\/?p=9577&#038;embed=true#?secret=Pm4YBPqjYN#?secret=RFjD0ldnYB\" data-secret=\"RFjD0ldnYB\" width=\"474\" height=\"267\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe>\n<\/div><\/figure>\n\n\n\n<p>2\u30f6\u6708\u958b\u3044\u3066\u3057\u307e\u3063\u305f\u30fb\u30fb\u30fb<\/p>\n\n\n\n<p>\u307c\u3061\u307c\u3061\u518d\u958b\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u30d8\u30ed\u30f3\u306e\u516c\u5f0f\u306f\u4e09\u89d2\u5f62\u306e3\u8fba\u306e\u9577\u3055\u304b\u3089\u9762\u7a4d\u3092\u6c42\u3081\u308b\u516c\u5f0f\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u4e09\u89d2\u5f62\u306e\u4e09\u8fba\u306e\u9577\u3055\u3092\u305d\u308c\u305e\u308ca,b,c\u3068\u3059\u308b\u3068\u3001\u8a08\u7b97\u5f0f\u306f\u4ee5\u4e0b\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"261\" height=\"66\" data-attachment-id=\"9980\" data-permalink=\"https:\/\/taki-lab.site\/bocci\/?attachment_id=9980\" data-orig-file=\"https:\/\/i0.wp.com\/taki-lab.site\/bocci\/wp-content\/uploads\/2023\/01\/a5366c4cf461da80c281ebab3b8b8d14.png?fit=261%2C66&amp;ssl=1\" data-orig-size=\"261,66\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"a5366c4cf461da80c281ebab3b8b8d14\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/taki-lab.site\/bocci\/wp-content\/uploads\/2023\/01\/a5366c4cf461da80c281ebab3b8b8d14.png?fit=261%2C66&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/taki-lab.site\/bocci\/wp-content\/uploads\/2023\/01\/a5366c4cf461da80c281ebab3b8b8d14.png?resize=261%2C66&#038;ssl=1\" alt=\"\" class=\"wp-image-9980\"\/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"132\" height=\"72\" data-attachment-id=\"9981\" data-permalink=\"https:\/\/taki-lab.site\/bocci\/?attachment_id=9981\" data-orig-file=\"https:\/\/i0.wp.com\/taki-lab.site\/bocci\/wp-content\/uploads\/2023\/01\/f1ab843ddcd25e9a18b480ec4a3e9768.png?fit=132%2C72&amp;ssl=1\" data-orig-size=\"132,72\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"f1ab843ddcd25e9a18b480ec4a3e9768\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/taki-lab.site\/bocci\/wp-content\/uploads\/2023\/01\/f1ab843ddcd25e9a18b480ec4a3e9768.png?fit=132%2C72&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/taki-lab.site\/bocci\/wp-content\/uploads\/2023\/01\/f1ab843ddcd25e9a18b480ec4a3e9768.png?resize=132%2C72&#038;ssl=1\" alt=\"\" class=\"wp-image-9981\"\/><\/figure>\n\n\n\n<pre class=\"wp-block-code\"><code>import math\r\n\r\nx = &#91;1, 3, 6]\r\ny = &#91;5, 1, 4]\r\n\r\na = math.sqrt((x&#91;1] - x&#91;0])**2 + (y&#91;1] - y&#91;0])**2)\r\nb = math.sqrt((x&#91;2] - x&#91;1])**2 + (y&#91;2] - y&#91;1])**2)\r\nc = math.sqrt((x&#91;2] - x&#91;0])**2 + (y&#91;2] - y&#91;0])**2)\r\ns = (a + b + c) \/ 2\r\n\r\nans = math.sqrt(s * (s - a) * (s - b) * (s - c))\r\n\r\nprint(ans)\r\n<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>$ python3 heron_area.py \r\n8.999999999999996<\/code><\/pre>\n\n\n\n<p>A(1,5),B(3,1),C(6,4)\u3001a=\u8fbaAB,b=\u8fbaBC,c=\u8fbaAC\u3068\u3059\u308b\u3068\u3001<\/p>\n\n\n\n<p>\u9762\u7a4d\u306f\u304a\u3088\u305d9\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<a href=\"https:\/\/blog.with2.net\/link\/?id=2023426&#038;cid=9200\" title=\"\u65e5\u3005\u306e\u51fa\u6765\u4e8b\u30e9\u30f3\u30ad\u30f3\u30b0\" target=\"_blank\" rel=\"noopener\"><image src=\"https:\/\/taki-lab.site\/bocci\/wp-content\/uploads\/2022\/11\/99c62cdd0038c9d3b540e561ee138b82-1.jpg\"><\/a>\n","protected":false},"excerpt":{"rendered":"<p>2\u30f6\u6708\u958b\u3044\u3066\u3057\u307e\u3063\u305f\u30fb\u30fb\u30fb \u307c\u3061\u307c\u3061\u518d\u958b\u3057\u3066\u3044\u304d\u307e\u3059\u3002 \u30d8\u30ed\u30f3\u306e\u516c\u5f0f\u306f\u4e09\u89d2\u5f62\u306e3\u8fba\u306e\u9577\u3055\u304b\u3089\u9762\u7a4d\u3092\u6c42\u3081\u308b\u516c\u5f0f\u3067\u3059\u3002 \u4e09\u89d2\u5f62\u306e\u4e09\u8fba\u306e\u9577\u3055\u3092\u305d\u308c\u305e\u308ca,b,c\u3068\u3059\u308b\u3068\u3001\u8a08\u7b97\u5f0f\u306f\u4ee5\u4e0b\u306b\u306a\u308a\u307e\u3059\u3002 A(1,5),B(3,1),C &hellip; <a href=\"https:\/\/taki-lab.site\/bocci\/?p=9978\" class=\"more-link\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"screen-reader-text\">\u3010\u6570\u5b66\u3011\u3010PYTHON\u3011\u30d8\u30ed\u30f3\u306e\u516c\u5f0f<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_uf_show_specific_survey":0,"_uf_disable_surveys":false,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[2806,3],"tags":[],"class_list":["post-9978","post","type-post","status-publish","format-standard","hentry","category-python","category-3"],"aioseo_notices":[],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p8SDbY-2AW","jetpack-related-posts":[{"id":9415,"url":"https:\/\/taki-lab.site\/bocci\/?p=9415","url_meta":{"origin":9978,"position":0},"title":"\u3010\u6570\u5b66\u3011\u3010PYTHON\u3011\u76f4\u89d2\u3092\u631f\u30802\u8fba\u306e\u6bd4\u304b\u3089\u89d2\u5ea6\u3092\u6c42\u3081\u308b","author":"taki","date":"2022\u5e7410\u670826\u65e5","format":false,"excerpt":"https:\/\/taki-lab.site\/bocci\/?p=9276 \u3053\u306e\u56f3\u306e\u03b8\u3092\u6c42\u3081\u307e\u3059\u3002 \u3053\u308c\u2026","rel":"","context":"Python","block_context":{"text":"Python","link":"https:\/\/taki-lab.site\/bocci\/?cat=2806"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/taki-lab.site\/bocci\/wp-content\/uploads\/2022\/10\/b95cd1b36e69e605eea8dda6e5996208.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":10166,"url":"https:\/\/taki-lab.site\/bocci\/?p=10166","url_meta":{"origin":9978,"position":1},"title":"\u3010\u6570\u5b66\u3011\u3010PYTHON\u30112\u3064\u306e\u30d9\u30af\u30c8\u30eb\u306e\u306a\u3059\u89d2\u5ea6\u3092\u6c42\u3081\u308b\u3002","author":"taki","date":"2023\u5e742\u670815\u65e5","format":false,"excerpt":"https:\/\/taki-lab.site\/bocci\/?p=10126 \u3053\u306e\u516c\u5f0f\u3067\u6c42\u3081\u308b\u3053\u3068\u304c\u3067\u304d\u2026","rel":"","context":"Python","block_context":{"text":"Python","link":"https:\/\/taki-lab.site\/bocci\/?cat=2806"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/taki-lab.site\/bocci\/wp-content\/uploads\/2023\/02\/6df66b262b1ccbc8a42146cf1e82ef62.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":9577,"url":"https:\/\/taki-lab.site\/bocci\/?p=9577","url_meta":{"origin":9978,"position":2},"title":"\u3010\u6570\u5b66\u3011\u3010PYTHON\u3011\u70b9\u3068\u76f4\u7dda\u306e\u8ddd\u96e2\u3092\u8a08\u7b97\u3059\u308b","author":"taki","date":"2022\u5e7411\u670819\u65e5","format":false,"excerpt":"https:\/\/taki-lab.site\/bocci\/?p=9484 \u70b9(x1, y1)\u3068\u76f4\u7ddaax\u2026","rel":"","context":"Python","block_context":{"text":"Python","link":"https:\/\/taki-lab.site\/bocci\/?cat=2806"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/taki-lab.site\/bocci\/wp-content\/uploads\/2022\/11\/1606cc1d46c823de87c270f339132360.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":9929,"url":"https:\/\/taki-lab.site\/bocci\/?p=9929","url_meta":{"origin":9978,"position":3},"title":"100\u65e5\u5f8c\u306b\u30d5\u30ea\u30fc\u30e9\u30f3\u30b9\u306b\u306a\u308bIT\u30a8\u30f3\u30b8\u30cb\u30a2 14\u65e5\u76ee","author":"taki","date":"2023\u5e741\u67087\u65e5","format":false,"excerpt":"https:\/\/taki-lab.site\/bocci\/?p=9915 \u3053\u306e\u65e5\u306f\u30b3\u30ed\u30ca\u30ef\u30af\u30c1\u30f3\u306e5\u56de\u2026","rel":"","context":"100\u65e5\u5f8c\u306b\u30d5\u30ea\u30fc\u30e9\u30f3\u30b9\u306b\u306a\u308bIT\u30a8\u30f3\u30b8\u30cb\u30a2","block_context":{"text":"100\u65e5\u5f8c\u306b\u30d5\u30ea\u30fc\u30e9\u30f3\u30b9\u306b\u306a\u308bIT\u30a8\u30f3\u30b8\u30cb\u30a2","link":"https:\/\/taki-lab.site\/bocci\/?cat=2876"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/taki-lab.site\/bocci\/wp-content\/uploads\/2023\/01\/20230107_002306093_iOS.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/taki-lab.site\/bocci\/wp-content\/uploads\/2023\/01\/20230107_002306093_iOS.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/taki-lab.site\/bocci\/wp-content\/uploads\/2023\/01\/20230107_002306093_iOS.png?resize=525%2C300&ssl=1 1.5x"},"classes":[]},{"id":5645,"url":"https:\/\/taki-lab.site\/bocci\/?p=5645","url_meta":{"origin":9978,"position":4},"title":"IT\u30cb\u30e5\u30fc\u30b9(03\/23)","author":"taki","date":"2021\u5e743\u670823\u65e5","format":false,"excerpt":"\u5b9f\u58f210\u4e07\u5186\u4ee5\u4e0b\u3001Ryzen\u642d\u8f09\u306e\u30d3\u30b8\u30cd\u30b9\u7279\u5316\u30ce\u30fc\u30c8\u300cMateBook 14 2020 AMD\u300d -\u2026","rel":"","context":"\u30cb\u30e5\u30fc\u30b9","block_context":{"text":"\u30cb\u30e5\u30fc\u30b9","link":"https:\/\/taki-lab.site\/bocci\/?cat=106"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":6540,"url":"https:\/\/taki-lab.site\/bocci\/?p=6540","url_meta":{"origin":9978,"position":5},"title":"IT\u30cb\u30e5\u30fc\u30b9(07\/11)","author":"taki","date":"2021\u5e747\u670811\u65e5","format":false,"excerpt":"\u540d\u3070\u304b\u308aCIO\u3001\u5834\u5f53\u305f\u308aDX \u30b7\u30b9\u30c6\u30e0\u958b\u767a\u306a\u304a\u4e38\u6295\u3052 - \u65e5\u672c\u7d4c\u6e08\u65b0\u805e \u30c7\u30b8\u30bf\u30eb\u6280\u8853\u3067\u30d3\u30b8\u30cd\u30b9\u30e2\u30c7\u30eb\u2026","rel":"","context":"\u30cb\u30e5\u30fc\u30b9","block_context":{"text":"\u30cb\u30e5\u30fc\u30b9","link":"https:\/\/taki-lab.site\/bocci\/?cat=106"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"jetpack_likes_enabled":true,"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/taki-lab.site\/bocci\/index.php?rest_route=\/wp\/v2\/posts\/9978","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/taki-lab.site\/bocci\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/taki-lab.site\/bocci\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/taki-lab.site\/bocci\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/taki-lab.site\/bocci\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=9978"}],"version-history":[{"count":1,"href":"https:\/\/taki-lab.site\/bocci\/index.php?rest_route=\/wp\/v2\/posts\/9978\/revisions"}],"predecessor-version":[{"id":9982,"href":"https:\/\/taki-lab.site\/bocci\/index.php?rest_route=\/wp\/v2\/posts\/9978\/revisions\/9982"}],"wp:attachment":[{"href":"https:\/\/taki-lab.site\/bocci\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=9978"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/taki-lab.site\/bocci\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=9978"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/taki-lab.site\/bocci\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=9978"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}