{"id":21,"date":"2026-04-19T15:56:00","date_gmt":"2026-04-19T06:56:00","guid":{"rendered":"https:\/\/40mod.com\/blog\/archives\/21"},"modified":"2026-04-26T18:03:14","modified_gmt":"2026-04-26T09:03:14","slug":"python","status":"publish","type":"post","link":"https:\/\/40mod.com\/blog\/archives\/21","title":{"rendered":"Python\u306e\u30b3\u30fc\u30c9\u3092\u30c0\u30d6\u30eb\u30af\u30ea\u30c3\u30af\u3067\u958b\u3044\u305f\u307e\u307e\u8d77\u52d5\u3059\u308b\u65b9\u6cd5"},"content":{"rendered":"<div class=\"separator\" style=\"clear: both; text-align: center;\">\u3053\u3093\u306b\u3061\u306f\uff01\u3044\u3064\u3082Python\u306e\u30b3\u30fc\u30c9\u3092\u52d5\u304b\u3059\u305f\u3081\u306b\u3001\u9ed2\u3044\u753b\u9762\uff08\u30b3\u30de\u30f3\u30c9\u30d7\u30ed\u30f3\u30d7\u30c8\uff09\u3068\u7768\u3081\u3063\u3053\u3057\u306a\u304c\u3089\u3001\u300c\u3042\u3041\u3001\u307e\u305fcd\u30b3\u30de\u30f3\u30c9\u3067\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u79fb\u52d5\u3057\u306a\u304d\u3083\u3044\u3051\u306a\u3044\u306e\uff1f\u300d\u306a\u3093\u3066\u5606\u3044\u3066\u3044\u307e\u305b\u3093\u304b\uff1f\u6b63\u76f4\u8a00\u3063\u3066\u3001\u73fe\u4ee3\u306e\u5fd9\u3057\u3044\u30a8\u30f3\u30b8\u30cb\u30a2\u306b\u3068\u3063\u3066\u3001\u6bce\u56de\u624b\u52d5\u3067\u30d1\u30b9\u3092\u5165\u529b\u3057\u305f\u308a\u3001\u9577\u3044\u30b3\u30de\u30f3\u30c9\u3092\u6253\u3061\u8fbc\u3093\u3060\u308a\u3059\u308b\u306e\u306f\u3001\u3042\u307e\u308a\u306b\u3082\u52b9\u7387\u304c\u60aa\u3059\u304e\u307e\u3059\u3088\u306d\u3002<a href=\"http:\/\/40mod.com\/blog\/wp-content\/uploads\/2026\/04\/python-1143966848.png\" style=\"margin-left: 1em; margin-right: 1em;\"><\/a><\/div>\n<p>\u7d50\u8ad6\u304b\u3089\u8a00\u3048\u3070\u3001\u4eca\u56de\u3054\u7d39\u4ecb\u3059\u308b\u300c\u9b54\u6cd5\u306ebat\u30d5\u30a1\u30a4\u30eb\u300d\u3055\u3048\u4f5c\u6210\u3057\u3066\u3057\u307e\u3048\u3070\u3001\u4eca\u5f8c\u306fPython\u30d5\u30a1\u30a4\u30eb\u3092\u30c0\u30d6\u30eb\u30af\u30ea\u30c3\u30af\u3059\u308b\u3060\u3051\u3067\u30d7\u30ed\u30b0\u30e9\u30e0\u304c\u5b9f\u884c\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002\u3053\u308c\u3067\u3082\u3046\u3001\u30ad\u30fc\u30dc\u30fc\u30c9\u3092\u53e9\u304f\u6307\u3092\u75db\u3081\u308b\u5fc5\u8981\u3082\u3001\u30bf\u30a4\u30dd\u306b\u30a4\u30e9\u30a4\u30e9\u3059\u308b\u5fc5\u8981\u3082\u3042\u308a\u307e\u305b\u3093\u3002\u30ba\u30dc\u30e9\u306a\u4eba\u307b\u3069\u30d7\u30ed\u30b0\u30e9\u30e0\u306f\u4e0a\u9054\u3059\u308b\u3068\u8a00\u3044\u307e\u3059\u3057\u3001\u3053\u306e\u52b9\u7387\u5316\u3001\u7d76\u5bfe\u306b\u3084\u3063\u3066\u304a\u304f\u3079\u304d\u3067\u3059\u3088\uff01<\/p>\n<h3>\u2699\ufe0f \u306a\u305c\u6bce\u56de\u30b3\u30de\u30f3\u30c9\u3092\u6253\u3064\u306e\u306f\u8f9b\u3044\u306e\u304b\uff1f<\/h3>\n<p>\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u3092\u59cb\u3081\u305f\u3070\u304b\u308a\u306e\u9803\u3001\u8ab0\u3082\u304c\u4e00\u5ea6\u306f\u901a\u308b\u300c\u4fee\u884c\u300d\u304c\u3042\u308a\u307e\u3059\u3002\u305d\u308c\u306f\u3001\u300c\u30b3\u30de\u30f3\u30c9\u30d7\u30ed\u30f3\u30d7\u30c8\u3092\u7acb\u3061\u4e0a\u3052\u3066\u3001\u30d5\u30a1\u30a4\u30eb\u306e\u3042\u308b\u5834\u6240\u307e\u3067\u79fb\u52d5\u3057\u3001\u3088\u3046\u3084\u304fpython\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3059\u308b\u300d\u3068\u3044\u3046\u3001\u3042\u307e\u308a\u306b\u3082\u539f\u59cb\u7684\u306a\u4f5c\u696d\u3067\u3059\u3002<br \/>\n1\u56de\u3060\u3051\u306a\u3089\u307e\u3060\u3057\u3082\u3001\u4fee\u6b63\u3057\u3066\u306f\u5b9f\u884c\u3001\u307e\u305f\u4fee\u6b63\u3057\u3066\u306f\u5b9f\u884c\u3092\u7e70\u308a\u8fd4\u3059\u958b\u767a\u30b5\u30a4\u30af\u30eb\u306b\u304a\u3044\u3066\u3001\u3053\u306e\u624b\u9593\u306f\u307e\u3055\u306b\u300c\u6642\u7d66\u3092\u30c9\u30d6\u306b\u6368\u3066\u308b\u300d\u3088\u3046\u306a\u3082\u306e\u3067\u3059\u3002\u6307\u304c\u75b2\u308c\u308b\u4ee5\u524d\u306b\u3001\u958b\u767a\u306e\u30c6\u30f3\u30dd\u304c\u60aa\u304f\u306a\u308a\u3001\u30a2\u30a4\u30c7\u30a2\u304c\u9583\u3044\u305f\u77ac\u9593\u306e\u71b1\u91cf\u3092\u51b7\u307e\u3057\u3066\u3057\u307e\u3044\u307e\u3059\u3002<\/p>\n<p>\u3057\u304b\u3082\u3001\u904b\u60aa\u304f\u30b9\u30af\u30ea\u30d7\u30c8\u5185\u3067\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3059\u308b\u3068\u3001\u4e00\u77ac\u3067\u9ed2\u3044\u753b\u9762\u304c\u5f37\u5236\u7d42\u4e86\u3057\u3066\u3057\u307e\u3044\u3001\u300c\u3055\u3063\u304d\u307e\u3067\u52d5\u3044\u3066\u305f\u306e\u306b\u4f55\u304c\u8d77\u304d\u305f\u3093\u3060\uff01\uff1f\u300d\u3068\u30d1\u30cb\u30c3\u30af\u306b\u306a\u308b\u3053\u3068\u3082\u3088\u304f\u3042\u308a\u307e\u3059\u3002\u3053\u308c\u3067\u306f\u958b\u767a\u74b0\u5883\u3067\u306f\u306a\u304f\u3001\u305f\u3060\u306e\u30a4\u30e9\u30a4\u30e9\u88fd\u9020\u6a5f\u3067\u3059\u3002\u305d\u3093\u306a\u82e6\u884c\u304b\u3089\u306f\u3001\u3055\u3063\u3055\u3068\u5352\u696d\u3057\u3066\u3057\u307e\u3044\u307e\u3057\u3087\u3046\u3002<\/p>\n<h3>\ud83d\udcc4 \u305f\u3063\u305f3\u884c\u306e\u9b54\u6cd5\u306e\u546a\u6587<\/h3>\n<p>\u305d\u3053\u3067\u767b\u5834\u3059\u308b\u306e\u304c\u3001Windows\u74b0\u5883\u3067\u6700\u5f37\u306e\u5473\u65b9\u3068\u306a\u308b\u300cbat\u30d5\u30a1\u30a4\u30eb\uff08\u30d0\u30c3\u30c1\u30d5\u30a1\u30a4\u30eb\uff09\u300d\u3067\u3059\u3002\u3084\u308a\u65b9\u306f\u6975\u3081\u3066\u30b7\u30f3\u30d7\u30eb\u3002\u30e1\u30e2\u5e33\u3092\u958b\u3044\u3066\u3001\u4ee5\u4e0b\u306e\u9b54\u6cd5\u306e\u546a\u6587\u3092\u30b3\u30d4\u30fc\uff06\u30da\u30fc\u30b9\u30c8\u3059\u308b\u3060\u3051\u3067\u6e96\u5099\u306f\u5b8c\u4e86\u3067\u3059\u3002<\/p>\n<p>@echo off<br \/>\npython &#8220;%~1&#8221;<br \/>\npause<\/p>\n<p>\u3053\u306e\u305f\u3063\u305f3\u884c\u306e\u30b3\u30fc\u30c9\u306b\u306f\u3001\u958b\u767a\u8005\u306e\u6d99\u3068\u52aa\u529b\u304c\u8a70\u307e\u3063\u3066\u3044\u307e\u3059\u3002\u6700\u521d\u306e\u300c@echo off\u300d\u306f\u3001\u4f59\u8a08\u306a\u30b3\u30de\u30f3\u30c9\u8868\u793a\u3092\u6d88\u3057\u3066\u3001\u753b\u9762\u3092\u30b9\u30c3\u30ad\u30ea\u3055\u305b\u308b\u304a\u307e\u3058\u306a\u3044\u3067\u3059\u3002\u6b21\u306b\u3001\u30e1\u30a4\u30f3\u306e\u300cpython &#8220;%~1&#8243;\u300d\u3067\u3059\u304c\u3001\u3053\u3053\u304c\u91cd\u8981\u3067\u3059\u3002\u3053\u308c\u306f\u300c\u3053\u306ebat\u30d5\u30a1\u30a4\u30eb\u306b\u30c9\u30e9\u30c3\u30b0\uff06\u30c9\u30ed\u30c3\u30d7\u3055\u308c\u305f\uff08\u307e\u305f\u306f\u95a2\u9023\u4ed8\u3051\u3089\u308c\u305f\uff09\u30d5\u30a1\u30a4\u30eb\u300d\u3092Python\u3067\u5b9f\u884c\u3059\u308b\u3068\u3044\u3046\u6307\u793a\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002\u300c%~1\u300d\u3068\u3044\u3046\u90e8\u5206\u304c\u3001\u30d5\u30a1\u30a4\u30eb\u540d\u306e\u30d1\u30b9\u3092\u3044\u3044\u611f\u3058\u306b\u51e6\u7406\u3057\u3066\u304f\u308c\u308b\u306e\u3067\u3001\u30d5\u30a1\u30a4\u30eb\u540d\u306b\u30b9\u30da\u30fc\u30b9\u304c\u5165\u3063\u3066\u3044\u3066\u3082\u30a8\u30e9\u30fc\u306b\u306a\u308a\u307e\u305b\u3093\u3002<\/p>\n<p>\u305d\u3057\u3066\u6700\u5f8c\u306e\u300cpause\u300d\u304c\u3001\u51e6\u7406\u304c\u7d42\u308f\u3063\u3066\u3082\u30a6\u30a3\u30f3\u30c9\u30a6\u3092\u9589\u3058\u305a\u306b\u5f85\u6a5f\u3057\u3066\u304f\u308c\u308b\u3001\u6148\u60b2\u6df1\u304d\u547d\u4ee4\u3067\u3059\u3002\u3053\u308c\u3067\u3001\u30a8\u30e9\u30fc\u304c\u8d77\u304d\u3066\u3082\u539f\u56e0\u3092\u3086\u3063\u304f\u308a\u78ba\u8a8d\u3067\u304d\u308b\u3068\u3044\u3046\u308f\u3051\u3067\u3059\u3002\u306a\u3093\u3066\u7d20\u6674\u3089\u3057\u3044\u30b7\u30b9\u30c6\u30e0\u3067\u3057\u3087\u3046\u3002<\/p>\n<h3>\ud83d\uddb1\ufe0f \u30c0\u30d6\u30eb\u30af\u30ea\u30c3\u30af\u3067\u5373\u8d77\u52d5\u3055\u305b\u308b\u8a2d\u5b9a<\/h3>\n<p>\u3055\u3066\u3001bat\u30d5\u30a1\u30a4\u30eb\u304c\u5b8c\u6210\u3057\u305f\u3089\u3001\u3069\u3053\u304b\u306b\u597d\u304d\u306a\u5834\u6240\u306b\u4fdd\u5b58\u3057\u3066\u304a\u304d\u307e\u3057\u3087\u3046\u3002\u30d5\u30a1\u30a4\u30eb\u540d\u306f\u300cPython\u5b9f\u884c.bat\u300d\u306e\u3088\u3046\u306a\u5206\u304b\u308a\u3084\u3059\u3044\u540d\u524d\u3067OK\u3067\u3059\u3002\u6b21\u306f\u3001\u3053\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u300c\u5e38\u306b\u4f7f\u3046\u300d\u8a2d\u5b9a\u306b\u767b\u9332\u3057\u307e\u3059\u3002<br \/>\n\u307e\u305a\u3001\u9069\u5f53\u306a.py\u30d5\u30a1\u30a4\u30eb\u3092\u53f3\u30af\u30ea\u30c3\u30af\u3057\u3001\u300c\u30d7\u30ed\u30b0\u30e9\u30e0\u304b\u3089\u958b\u304f\u300d\u2192\u300c\u5225\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u9078\u629e\u300d\u3092\u9078\u3073\u307e\u3059\u3002\u305d\u3053\u3067\u5148\u307b\u3069\u4f5c\u6210\u3057\u305f\u300cPython\u5b9f\u884c.bat\u300d\u3092\u6307\u5b9a\u3057\u3001\u300c\u5e38\u306b\u3053\u306e\u30a2\u30d7\u30ea\u3067\u958b\u304f\u300d\u3068\u3044\u3046\u30c1\u30a7\u30c3\u30af\u30dc\u30c3\u30af\u30b9\u3092\u5fd8\u308c\u305a\u306bON\u306b\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u3053\u308c\u4ee5\u964d\u3001\u3069\u306ePython\u30d5\u30a1\u30a4\u30eb\u3092\u30c0\u30d6\u30eb\u30af\u30ea\u30c3\u30af\u3057\u3066\u3082\u3001\u81ea\u52d5\u7684\u306bbat\u30d5\u30a1\u30a4\u30eb\u3092\u7d4c\u7531\u3057\u3066\u3001\u7dba\u9e97\u306a\u9ed2\u3044\u753b\u9762\u3067\u30b9\u30af\u30ea\u30d7\u30c8\u304c\u8d70\u308a\u51fa\u3057\u307e\u3059\u3002\u4eca\u307e\u3067\u30b3\u30de\u30f3\u30c9\u5165\u529b\u306b\u4f7f\u3063\u3066\u3044\u305f\u6642\u9593\u3092\u8003\u3048\u308c\u3070\u3001\u3053\u308c\u3060\u3051\u3067\u3069\u308c\u3060\u3051\u306e\u81ea\u7531\u6642\u9593\u304c\u751f\u307e\u308c\u308b\u3053\u3068\u3067\u3057\u3087\u3046\u304b\u3002\u6d6e\u3044\u305f\u6642\u9593\u3067\u7f8e\u5473\u3057\u3044\u30b3\u30fc\u30d2\u30fc\u3067\u3082\u6df9\u308c\u3066\u3001\u3086\u3063\u304f\u308a\u4f11\u61a9\u3059\u308b\u4f59\u88d5\u3082\u751f\u307e\u308c\u307e\u3059\u306d\u3002<\/p>\n<h3>\u307e\u3068\u3081\uff1a\u30ba\u30dc\u30e9\u3053\u305d\u30a8\u30f3\u30b8\u30cb\u30a2\u306e\u624d\u80fd<\/h3>\n<p>\u4eca\u56de\u306f\u3001\u30b3\u30de\u30f3\u30c9\u5165\u529b\u3068\u3044\u3046\u5730\u5473\u306a\u82e6\u884c\u304b\u3089\u89e3\u653e\u3055\u308c\u308b\u3001bat\u30d5\u30a1\u30a4\u30eb\u306b\u3088\u308b\u81ea\u52d5\u5316\u30c6\u30af\u30cb\u30c3\u30af\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3057\u305f\u3002\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u306e\u4e16\u754c\u306b\u304a\u3044\u3066\u3001\u300c\u9762\u5012\u3060\u300d\u3068\u611f\u3058\u308b\u3053\u3068\u306f\u3001\u5b9f\u306f\u6700\u9ad8\u306e\u6539\u5584\u306e\u30c1\u30e3\u30f3\u30b9\u3067\u3059\u3002<br \/>\n\u300c\u3082\u3063\u3068\u697d\u306b\u52d5\u304b\u3057\u305f\u3044\u300d\u300c\u3044\u3061\u3044\u3061\u6253\u3064\u306e\u304c\u9762\u5012\u3060\u300d\u3068\u3044\u3046\u30ba\u30dc\u30e9\u306a\u5fc3\u3053\u305d\u304c\u3001\u65b0\u3057\u3044\u6280\u8853\u3084\u4fbf\u5229\u306a\u30c4\u30fc\u30eb\u3092\u751f\u307f\u51fa\u3059\u539f\u52d5\u529b\u306b\u306a\u308a\u307e\u3059\u3002\u305f\u3063\u305f\u6570\u884c\u306e\u30b3\u30fc\u30c9\u3092\u66f8\u304f\u3060\u3051\u3067\u3001\u3053\u308c\u307e\u3067\u306e\u624b\u9593\u304c\u5618\u306e\u3088\u3046\u306b\u6d88\u3048\u308b\u4f53\u9a13\u306f\u3001\u4f55\u5ea6\u5473\u308f\u3063\u3066\u3082\u6c17\u6301\u3061\u304c\u3044\u3044\u3082\u306e\u3067\u3059\u3002<\/p>\n<p>\u305c\u3072\u4eca\u3059\u3050\u3053\u306e\u8a2d\u5b9a\u3092\u8a66\u3057\u3066\u3001\u5feb\u9069\u306aPython\u30e9\u30a4\u30d5\u3092\u624b\u306b\u5165\u308c\u3066\u304f\u3060\u3055\u3044\u3002\u3082\u3057\u4e07\u304c\u4e00\u3001\u8a2d\u5b9a\u5f8c\u306b\u3046\u307e\u304f\u52d5\u304b\u306a\u304b\u3063\u305f\u3068\u3057\u3066\u3082\u3001\u305d\u308c\u306f\u304d\u3063\u3068\u795e\u69d8\u304c\u300c\u3082\u3046\u5c11\u3057\u4f11\u3093\u3067\u304b\u3089\u30b3\u30fc\u30c9\u3092\u66f8\u3051\u300d\u3068\u8a00\u3063\u3066\u3044\u308b\u3060\u3051\u306a\u306e\u3067\u3001\u6c17\u306b\u305b\u305a\u518d\u6311\u6226\u3057\u307e\u3057\u3087\u3046\u3002\u3042\u306a\u305f\u306e\u30b3\u30fc\u30c9\u304c\u3001\u30c0\u30d6\u30eb\u30af\u30ea\u30c3\u30af\u4e00\u3064\u3067\u8efd\u5feb\u306b\u52d5\u304d\u51fa\u3059\u77ac\u9593\u3092\u5fc3\u5f85\u3061\u306b\u3057\u3066\u3044\u307e\u3059\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>&hellip;<\/p>\n","protected":false},"author":2,"featured_media":22,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[22,19,20],"tags":[4,2,5],"class_list":["post-21","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-python","category-windows","category-20","tag-python","tag-windows","tag-5"],"_links":{"self":[{"href":"https:\/\/40mod.com\/blog\/wp-json\/wp\/v2\/posts\/21","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/40mod.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/40mod.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/40mod.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/40mod.com\/blog\/wp-json\/wp\/v2\/comments?post=21"}],"version-history":[{"count":3,"href":"https:\/\/40mod.com\/blog\/wp-json\/wp\/v2\/posts\/21\/revisions"}],"predecessor-version":[{"id":117,"href":"https:\/\/40mod.com\/blog\/wp-json\/wp\/v2\/posts\/21\/revisions\/117"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/40mod.com\/blog\/wp-json\/wp\/v2\/media\/22"}],"wp:attachment":[{"href":"https:\/\/40mod.com\/blog\/wp-json\/wp\/v2\/media?parent=21"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/40mod.com\/blog\/wp-json\/wp\/v2\/categories?post=21"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/40mod.com\/blog\/wp-json\/wp\/v2\/tags?post=21"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}