{"id":385,"date":"2021-12-19T13:37:11","date_gmt":"2021-12-19T04:37:11","guid":{"rendered":"https:\/\/www.mobile-sta.com\/wordpress\/?p=385"},"modified":"2023-10-24T22:08:17","modified_gmt":"2023-10-24T13:08:17","slug":"python%e7%96%91%e5%95%8f%e3%81%82%e3%82%8c%e3%81%93%e3%82%8c","status":"publish","type":"post","link":"https:\/\/www.mobile-sta.com\/wordpress\/?p=385","title":{"rendered":"python\u7591\u554f\u3042\u308c\u3053\u308c"},"content":{"rendered":"\n<p>Python\u5b66\u7fd2\u306e\u521d\u5fc3\u8005(\u5c0f\u30fb\u4e2d\u5b66\u751f)\u5411\u3051\u306b\u3001\u89e3\u308a\u306b\u304f\u305d\u3046\u306a\u70b9\u3092\u66f8\u3044\u3066\u3086\u3053\u3046\u3068\u601d\u3044\u307e\u3059\u3002\u79c1\u81ea\u8eab\u306f\u666e\u6bb5\u306f\u5225\u306e\u8a00\u8a9e\u3092\u4e3b\u306b\u4f7f\u7528\u3057\u3066\u3044\u308b\u306e\u3067\u587e\u306a\u3069\u3067\u6559\u3048\u3066\u3082\u3089\u3063\u305f\u8868\u73fe\u3068\u5c11\u3057\u9055\u3046\u304b\u3082\u77e5\u308c\u306a\u3044\u3051\u3069\u3001\u3067\u304d\u308b\u9650\u308a\u89e3\u308a\u3084\u3059\u3044\u3088\u3046\u306b\u9811\u5f35\u308a\u307e\u3059\u3002<\/p>\n<p><span style=\"color: #0000ff;\"><strong>\u5909\u6570(\u3078\u3093\u3059\u3046)\u3068\u578b(\u304b\u305f)<\/strong><\/span><\/p>\n<p><span style=\"color: #000000;\">\u30fb\u300c<span style=\"color: #ff0000;\">\u5909\u6570<\/span>(\u3078\u3093\u3059\u3046)\u300d\u306f\u3001\u30c7\u30fc\u30bf\u3092\u4e00\u6642\u7684\u306b\u8a18\u61b6\u3057\u3066\u304a\u304f\u7bb1\u306e\u3088\u3046\u306a\u3082\u306e\u3002\u5b9f\u969b\u306b\u306f\u30d1\u30bd\u30b3\u30f3\u306e\u30e1\u30e2\u30ea\u30fc\u4e0a\u306b\u30c7\u30fc\u30bf\u304c\u8a18\u61b6\u3055\u308c\u308b\u3088\u3002<\/span><\/p>\n<p>\u30fb\u300c<span style=\"color: #ff0000;\">\u578b<\/span>(\u304b\u305f)\u300d\u306f\u3001\u5909\u6570\u306e\u578b\u3068\u3088\u304f\u8a00\u3046\u3051\u3069\u3001\u305d\u306e\u5909\u6570\u306e\u4e2d\u8eab\u306e\u7a2e\u985e\u306e\u3053\u3068\u3060\u3088\u3002\u7a2e\u985e\u3068\u3044\u3046\u306e\u306f\u3001\u300c\u6587\u5b57\u300d\u306a\u306e\u304b\u300c\u6570\u5024\u300d\u306a\u306e\u304b\u300c\u65e5\u6642\u300d\u306a\u306e\u304b\u3002\u914d\u5217\u3068\u304b\u3002(\u4ed6\u306b\u3082\u3044\u308d\u3044\u308d\u3042\u308b\u3051\u3069)<\/p>\n<p>Python\u306f\u3001\u5909\u6570\u3092\u5ba3\u8a00\u3059\u308b\u3068\u304d\u306b\u3001\u578b\u3092\u6307\u5b9a\u3057\u306a\u3044\u306e\u3067\u3001\u4f55\u304c\u5165\u3063\u3066\u3044\u308b\u304b\u306b\u3088\u3063\u3066\u6271\u3044\u65b9(\u8db3\u3057\u305f\u308a\u3001\u3064\u306a\u3052\u305f\u308a\u3059\u308b\u6642)\u306b\u6ce8\u610f\u304c\u5fc5\u8981\u306b\u306a\u308b\u304b\u3089\u306d\u3002<\/p>\n<p>\u2193Python\u30b5\u30f3\u30d7\u30eb<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"python\" data-enlighter-title=\"\">import tkinter as tk\n\nroot = tk.Tk()\nroot.title(&quot;\u30bf\u30a4\u30c8\u30eb&quot;)\nroot.geometry(&quot;200x100&quot;)\n\nlabel1=tk.Label(text=&quot;\u30b5\u30f3\u30d7\u30eb&quot;,background=&quot;yellow&quot;)\nlabel1.pack()\n\nbutton1=tk.Button(text=&quot;\u30dc\u30bf\u30f3&quot;,command=lambda:button1_click())\ndef button1_click():\n    text = &quot;\u30dc\u30bf\u30f3\u3092\u62bc\u3057\u305f\u3088\uff01&quot;\n    label1[&quot;text&quot;] = text\nbutton1.pack()\n\nroot.mainloop()<\/pre>\n<p>\u00a0<\/p>\n\n\n\n<p>\u2193  \u2193  \u2193 \u2193  \u2193  \u2193  \u2193  \u2193  \u5909\u6570\u3068\u578b\u306e\u8aac\u660e \u2193  \u2193  \u2193  \u2193  \u2193  \u2193  \u2193  \u2193  \u2193 <\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><a href=\"https:\/\/www.mobile-sta.com\/wordpress\/wp-content\/uploads\/2021\/12\/python2021_12_19.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"505\" height=\"441\" src=\"https:\/\/www.mobile-sta.com\/wordpress\/wp-content\/uploads\/2021\/12\/python2021_12_19.jpg\" alt=\"\" class=\"wp-image-391\" srcset=\"https:\/\/www.mobile-sta.com\/wordpress\/wp-content\/uploads\/2021\/12\/python2021_12_19.jpg 505w, https:\/\/www.mobile-sta.com\/wordpress\/wp-content\/uploads\/2021\/12\/python2021_12_19-300x262.jpg 300w\" sizes=\"auto, (max-width: 505px) 100vw, 505px\" \/><\/a><\/figure>\n<\/div>","protected":false},"excerpt":{"rendered":"<p>Python\u5b66\u7fd2\u306e\u521d\u5fc3\u8005(\u5c0f\u30fb\u4e2d\u5b66\u751f)\u5411\u3051\u306b\u3001\u89e3\u308a\u306b\u304f\u305d\u3046\u306a\u70b9\u3092\u66f8\u3044\u3066\u3086\u3053\u3046\u3068\u601d\u3044\u307e\u3059\u3002\u79c1\u81ea\u8eab\u306f\u666e\u6bb5\u306f\u5225\u306e\u8a00\u8a9e\u3092\u4e3b\u306b\u4f7f\u7528\u3057\u3066\u3044\u308b\u306e\u3067\u587e\u306a\u3069\u3067\u6559\u3048\u3066\u3082\u3089\u3063\u305f\u8868\u73fe\u3068\u5c11\u3057\u9055\u3046\u304b\u3082\u77e5\u308c\u306a\u3044\u3051\u3069\u3001\u3067\u304d\u308b\u9650\u308a\u89e3\u308a\u3084\u3059\u3044\u3088\u3046\u306b\u9811\u5f35\u308a\u307e &hellip; <a href=\"https:\/\/www.mobile-sta.com\/wordpress\/?p=385\" class=\"more-link\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"screen-reader-text\">python\u7591\u554f\u3042\u308c\u3053\u308c<\/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":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-385","post","type-post","status-publish","format-standard","hentry","category-1"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.mobile-sta.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/385","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.mobile-sta.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.mobile-sta.com\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.mobile-sta.com\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.mobile-sta.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=385"}],"version-history":[{"count":12,"href":"https:\/\/www.mobile-sta.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/385\/revisions"}],"predecessor-version":[{"id":462,"href":"https:\/\/www.mobile-sta.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/385\/revisions\/462"}],"wp:attachment":[{"href":"https:\/\/www.mobile-sta.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=385"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.mobile-sta.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=385"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.mobile-sta.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=385"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}