{"id":3048,"date":"2020-11-16T23:57:01","date_gmt":"2020-11-16T14:57:01","guid":{"rendered":"https:\/\/www.python.ambitious-engineer.com\/?p=3048"},"modified":"2020-11-24T00:55:07","modified_gmt":"2020-11-23T15:55:07","slug":"python%e3%82%92%e5%8b%95%e3%81%8b%e3%81%97%e3%81%a6%e3%81%bf%e3%82%88%e3%81%86","status":"publish","type":"post","link":"https:\/\/www.python.ambitious-engineer.com\/archives\/3048","title":{"rendered":"Python\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u52d5\u304b\u3057\u3066\u307f\u3088\u3046"},"content":{"rendered":"<h2>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3068\u5b9f\u884c<\/h2>\n<p>Windows\u3092\u304a\u4f7f\u3044\u306e\u65b9\u306f<a href=\"https:\/\/www.python.ambitious-engineer.com\/archives\/28\">\u3053\u3061\u3089\u306e\u30da\u30fc\u30b8<\/a>\u3092\u53c2\u8003\u306bPython\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u304f\u3060\u3055\u3044\u3002Mac\u306e\u5834\u5408\u306fXcode\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3068\u540c\u68b1\u3055\u308c\u3066\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u307e\u3059\u3002\u4ee5\u964d\u3001Windows\u5411\u3051\u306b\u8aac\u660e\u3057\u307e\u3059\u304c\u3001Mac\u3092\u304a\u4f7f\u3044\u306e\u65b9\u306f\u9069\u5b9c\u8aad\u307f\u66ff\u3048\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<h3>Python\u30b9\u30af\u30ea\u30d7\u30c8\u306e\u4f5c\u6210<\/h3>\n<p>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u304c\u7d42\u308f\u3063\u305f\u3089\u9069\u5f53\u306a\u540d\u524d\u3067\u4f5c\u696d\u7528\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u4f5c\u6210\u3057\u3001\u305d\u3053\u306b\u30e1\u30e2\u5e33\u3067\u300csample.py\u300d\u3068\u3044\u3046\u30c6\u30ad\u30b9\u30c8\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u30c6\u30ad\u30b9\u30c8\u30d5\u30a1\u30a4\u30eb\u306e\u4e2d\u8eab\u306b\u306f\u4ee5\u4e0b\u306e1\u884c\u3092\u8a18\u5165\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: python; title: ; notranslate\" title=\"\">\r\nprint(&quot;Hello, World!&quot;)\r\n<\/pre>\n<p>Python\u306f\u3053\u306e\u3088\u3046\u306a\u30c6\u30ad\u30b9\u30c8\u30d5\u30a1\u30a4\u30eb\u306b\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u66f8\u304d\u5b9f\u884c\u3057\u307e\u3059\u304c\u3001\u3053\u306e\u3088\u3046\u306a\u62e1\u5f35\u5b50\u304c.py\u3068\u306a\u308b\u30c6\u30ad\u30b9\u30c8\u30d5\u30a1\u30a4\u30eb\u3092<strong>Python\u30b9\u30af\u30ea\u30d7\u30c8<\/strong>\u3068\u547c\u3073\u307e\u3059\u3002<\/p>\n<h3>Python\u30b9\u30af\u30ea\u30d7\u30c8\u306e\u5b9f\u884c<\/h3>\n<p>\u305d\u308c\u3067\u306f\u3044\u3088\u3044\u3088Python\u3092\u5b9f\u884c\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002\u307e\u305a\u3001\u30b3\u30de\u30f3\u30c9\u30d7\u30ed\u30f3\u30d7\u30c8\u304bWindows PowerShell\u3092\u8d77\u52d5\u3057\u3001\u3055\u304d\u307b\u3069\u4f5c\u6210\u3057\u305f\u4f5c\u696d\u7528\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u79fb\u52d5\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u4f8b\u3048\u3070\u3001<code>c:\\pywork<\/code>\u3068\u3044\u3046\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u79fb\u52d5\u3059\u308b\u5834\u5408\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\ncd C:\\pywork\\ \r\n<\/pre>\n<p>\u6b21\u306b\u3001python\u30b3\u30de\u30f3\u30c9\u3067python\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002python\u306e\u5f8c\u308d\u306b\u5148\u307b\u3069\u4f5c\u6210\u3057\u305fPython\u30b9\u30af\u30ea\u30d7\u30c8\u3001sample.py\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\npython sample.py\r\n<\/pre>\n<p>\u3044\u304b\u304c\u3067\u3057\u3087\u3046\u304b\uff1f\u300cHello, World!\u300d\u3068\u3044\u3046\u6587\u5b57\u5217\u304c\u51fa\u529b\u3055\u308c\u308b\u3068\u6210\u529f\u3067\u3059\u3002\u5148\u307b\u3069\u4f5c\u6210\u3057\u305fPython\u30b9\u30af\u30ea\u30d7\u30c8\u306f<strong>\u300cprint\u95a2\u6570\u300d<\/strong>\u3068\u547c\u3070\u308c\u308b\u3082\u306e\u3067\u3001\u30af\u30a9\u30fc\u30c6\u30fc\u30b7\u30e7\u30f3\u3067\u56f2\u3093\u3060\u6587\u5b57\u5217\u3092\u8868\u793a\u3057\u307e\u3059\u3002<\/p>\n<p>\u306a\u304a\u3001\u30e1\u30e2\u5e33\u306e\u3088\u3046\u306b\u30b3\u30fc\u30c9\u3092\u66f8\u304f\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u3053\u3068\u3092<strong>\u30a8\u30c7\u30a3\u30bf<\/strong>\u3068\u547c\u3073\u307e\u3059\u3002\u307e\u305f\u3001PowerShell\u306e\u3088\u3046\u306a\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u3092\u5b9f\u884c\u3059\u308b\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u3053\u3068\u3092<strong>\u30bf\u30fc\u30df\u30ca\u30eb<\/strong>\u3068\u547c\u3073\u307e\u3059\u3002\u6700\u521d\u306e\u3046\u3061\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u30a8\u30c7\u30a3\u30bf\u3068\u30bf\u30fc\u30df\u30ca\u30eb\u3092\u4e26\u3079\u3066\u5b9f\u884c\u3059\u308b\u3068\u306f\u304b\u3069\u308b\u304b\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p><a href=\"https:\/\/www.python.ambitious-engineer.com\/wp-content\/uploads\/2020\/11\/win_python_run.png\"><img loading=\"lazy\" src=\"https:\/\/www.python.ambitious-engineer.com\/wp-content\/uploads\/2020\/11\/win_python_run-1024x516.png\" alt=\"\" width=\"654\" height=\"330\" class=\"alignnone size-large wp-image-3052\" srcset=\"https:\/\/www.python.ambitious-engineer.com\/wp-content\/uploads\/2020\/11\/win_python_run-1024x516.png 1024w, https:\/\/www.python.ambitious-engineer.com\/wp-content\/uploads\/2020\/11\/win_python_run-300x151.png 300w, https:\/\/www.python.ambitious-engineer.com\/wp-content\/uploads\/2020\/11\/win_python_run-768x387.png 768w, https:\/\/www.python.ambitious-engineer.com\/wp-content\/uploads\/2020\/11\/win_python_run-718x362.png 718w, https:\/\/www.python.ambitious-engineer.com\/wp-content\/uploads\/2020\/11\/win_python_run.png 1372w\" sizes=\"(max-width: 654px) 100vw, 654px\" \/><\/a><br \/>\n\u307e\u305f\u3001\u6587\u5b57\u5217\u304c\u8868\u793a\u3055\u308c\u307e\u3057\u305f\u304c\u3053\u308c\u3092<strong>\u300c\u51fa\u529b\u3055\u308c\u308b\u300d<\/strong>\u3068\u547c\u3076\u5834\u5408\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<h2>\u88dc\u8db31 Mac\u306e\u5834\u5408<\/h2>\n<p>Mac\u306e\u5834\u5408\u306f\u30bf\u30fc\u30df\u30ca\u30eb\u3092\u8d77\u52d5\u3057\u3001Python\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u4f5c\u6210\u3057\u305f\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u79fb\u52d5\u3057\u307e\u3059\u3002\u4f8b\u3048\u3070\u3001<code>~\/pywork<\/code>\u3068\u3044\u3046\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u79fb\u52d5\u3059\u308b\u5834\u5408\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\ncd ~\/pywork\r\n<\/pre>\n<p>\u5b9f\u884c\u3059\u308b\u5834\u5408\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\npython3 sample.py\r\n<\/pre>\n<p>Mac\u306e\u5834\u5408\u30c7\u30d5\u30a9\u30eb\u30c8\u3060\u3068python\u30b3\u30de\u30f3\u30c9\u304cPython2\u3092\u6307\u3057\u3066\u3044\u308b\u305f\u3081\u3001\u30a8\u30a4\u30ea\u30a2\u30b9\u3092\u8a2d\u5b9a\u3059\u308b\u5834\u5408\u304c\u3042\u308a\u307e\u3059\u3002\u4ee5\u5f8c\u3001\u672c\u30b5\u30a4\u30c8\u3067\u306fpython3\u30b3\u30de\u30f3\u30c9\u3082python\u3068\u8a18\u8ff0\u3057\u307e\u3059\u3002<\/p>\n<h2>\u88dc\u8db32 \u5bfe\u8a71\u30e2\u30fc\u30c9<\/h2>\n<p>Python\u306b\u306f\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u5b9f\u884c\u3059\u308b\u4ee5\u5916\u306b\u5bfe\u8a71\u30e2\u30fc\u30c9\u3068\u547c\u3070\u308c\u308b\u5b9f\u884c\u65b9\u6cd5\u304c\u3042\u308a\u307e\u3059\u3002\u3053\u308c\u306f\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u4f5c\u6210\u305b\u305a\u306b\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u4e0a\u3067\u5bfe\u8a71\u7684\u306bPython\u3092\u5b9f\u884c\u3067\u304d\u308b\u6a5f\u80fd\u3067\u3001\u975e\u5e38\u306b\u4fbf\u5229\u306aPython\u306e\u6a5f\u80fd\u306e1\u3064\u3067\u3059\u3002\u305f\u3060\u3057\u3001\u6700\u521d\u306e\u3046\u3061\u306f\u3069\u3053\u304b\u3089\u5b9f\u884c\u3057\u305f\u306e\u304b\u6df7\u4e71\u3059\u308b\u5834\u5408\u304c\u591a\u3044\u305f\u3081\u3001\u5f53\u8b1b\u5ea7\u3067\u306f\u7d42\u76e4\u307e\u3067\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u4f5c\u6210\u3057\u3066\u5b9f\u884c\u3059\u308b\u65b9\u6cd5\u3067\u89e3\u8aac\u3057\u307e\u3059\u3002<\/p>\n<h2>\u6f14\u7fd2<\/h2>\n<p>\u305d\u308c\u3067\u306f\u3001\u6f14\u7fd2\u3067\u3059\u3002\u305f\u304f\u3055\u3093\u30b3\u30fc\u30c9\u3092\u66f8\u3044\u3066\u5b9f\u884c\u3059\u308b\u3053\u3068\u306f\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u4e0a\u9054\u306e\u30b3\u30c4\u306e1\u3064\u3067\u3059\u3002<\/p>\n<h3>\u6f14\u7fd21<\/h3>\n<p>\u3000\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u300c\u3053\u3093\u306b\u3061\u306f\u300d\u3068\u3044\u3046\u30c6\u30ad\u30b9\u30c8\u3092\u51fa\u529b\u3055\u305b\u308b\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u4f5c\u6210\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n\u3053\u3093\u306b\u3061\u306f\u3002\r\n<\/pre>\n<h3>\u6f14\u7fd21\u89e3\u7b54\u4f8b<\/h3>\n<p>\u3055\u304d\u307b\u3069\u306eprint\u306e\u4e2d\u306b\u9069\u5f53\u306a\u6587\u5b57\u5217\u3092\u8a2d\u5b9a\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u305f\u3060\u3057\u3001\u6b21\u56de\u4ee5\u964d\u306b\u8aac\u660e\u3057\u307e\u3059\u304c\u4e00\u90e8\u306e\u6587\u5b57\u5217\u306f\u6307\u5b9a\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u305b\u3093\u3002<\/p>\n<pre class=\"brush: python; title: ; notranslate\" title=\"\">\r\nprint(&quot;\u3053\u3093\u306b\u3061\u306f\u3002&quot;)\r\n<\/pre>\n<h3>\u6f14\u7fd22<\/h3>\n<p>\u4ee5\u4e0b\u306e\u3088\u3046\u306b3\u884c\u306e\u81ea\u5df1\u7d39\u4ecb\u306e\u30c6\u30ad\u30b9\u30c8\u3092\u51fa\u529b\u3055\u305b\u308b\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u4f5c\u6210\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n\u3053\u3093\u306b\u3061\u306f\u3002\r\n\u79c1\u306e\u540d\u524d\u306f\u9234\u6728\u3067\u3059\u3002\r\nPython\u304c\u8da3\u5473\u3067\u3059\u3002\r\n<\/pre>\n<h3>\u6f14\u7fd22\u89e3\u7b54\u4f8b<\/h3>\n<p>\u3055\u304d\u307b\u3069\u306eprint\u3092\u8ffd\u52a0\u3057\u3066\u3044\u304f\u3089\u3067\u3082\u51fa\u529b\u3092\u8ffd\u52a0\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"brush: python; title: ; notranslate\" title=\"\">\r\nprint(&quot;\u3053\u3093\u306b\u3061\u306f\u3002&quot;)\r\nprint(&quot;\u79c1\u306e\u540d\u524d\u306f\u9234\u6728\u3067\u3059\u3002&quot;)\r\nprint(&quot;Python\u304c\u8da3\u5473\u3067\u3059\u3002&quot;)\r\n<\/pre>\n<p>\u4e0a\u306e\u6f14\u7fd2\u4ee5\u5916\u306b\u3082\u3044\u308d\u3044\u308d\u306a\u6587\u5b57\u5217\u3092\u51fa\u529b\u3057\u3066\u904a\u3093\u3067\u307f\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3068\u5b9f\u884c Windows\u3092\u304a\u4f7f\u3044\u306e\u65b9\u306f\u3053\u3061\u3089\u306e\u30da\u30fc\u30b8\u3092\u53c2\u8003\u306bPython\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u304f\u3060\u3055\u3044\u3002Mac\u306e\u5834\u5408\u306fXcode\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3068\u540c\u68b1\u3055\u308c\u3066\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u307e\u3059\u3002\u4ee5\u964d\u3001Windows\u5411\u3051\u306b\u8aac\u660e\u3057\u307e...<\/p>\n","protected":false},"author":1,"featured_media":3061,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[206],"tags":[],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.python.ambitious-engineer.com\/wp-json\/wp\/v2\/posts\/3048"}],"collection":[{"href":"https:\/\/www.python.ambitious-engineer.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.python.ambitious-engineer.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.python.ambitious-engineer.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.python.ambitious-engineer.com\/wp-json\/wp\/v2\/comments?post=3048"}],"version-history":[{"count":14,"href":"https:\/\/www.python.ambitious-engineer.com\/wp-json\/wp\/v2\/posts\/3048\/revisions"}],"predecessor-version":[{"id":3333,"href":"https:\/\/www.python.ambitious-engineer.com\/wp-json\/wp\/v2\/posts\/3048\/revisions\/3333"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.python.ambitious-engineer.com\/wp-json\/wp\/v2\/media\/3061"}],"wp:attachment":[{"href":"https:\/\/www.python.ambitious-engineer.com\/wp-json\/wp\/v2\/media?parent=3048"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.python.ambitious-engineer.com\/wp-json\/wp\/v2\/categories?post=3048"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.python.ambitious-engineer.com\/wp-json\/wp\/v2\/tags?post=3048"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}