<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	
	xmlns:georss="http://www.georss.org/georss"
	xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#"
	>

<channel>
	<title>プログラミング  |  AboeBlog</title>
	<atom:link href="https://aboeblog.com/category/program/feed/" rel="self" type="application/rss+xml" />
	<link>https://aboeblog.com</link>
	<description>全日本人プログラミング可能計画</description>
	<lastBuildDate>Wed, 21 Oct 2020 13:55:52 +0000</lastBuildDate>
	<language>ja</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.5.8</generator>
	<atom:link rel='hub' href='https://aboeblog.com/?pushpress=hub'/>
<site xmlns="com-wordpress:feed-additions:1">139919897</site>	<item>
		<title>初心者のためのPython入門 #1 -Pythonの基本の使い方編-</title>
		<link>https://aboeblog.com/program/%e5%88%9d%e5%bf%83%e8%80%85%e3%81%ae%e3%81%9f%e3%82%81%e3%81%aepython%e5%85%a5%e9%96%80-1-python%e3%81%ae%e5%9f%ba%e6%9c%ac%e3%81%ae%e4%bd%bf%e3%81%84%e6%96%b9%e7%b7%a8/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=%25e5%2588%259d%25e5%25bf%2583%25e8%2580%2585%25e3%2581%25ae%25e3%2581%259f%25e3%2582%2581%25e3%2581%25aepython%25e5%2585%25a5%25e9%2596%2580-1-python%25e3%2581%25ae%25e5%259f%25ba%25e6%259c%25ac%25e3%2581%25ae%25e4%25bd%25bf%25e3%2581%2584%25e6%2596%25b9%25e7%25b7%25a8</link>
					<comments>https://aboeblog.com/program/%e5%88%9d%e5%bf%83%e8%80%85%e3%81%ae%e3%81%9f%e3%82%81%e3%81%aepython%e5%85%a5%e9%96%80-1-python%e3%81%ae%e5%9f%ba%e6%9c%ac%e3%81%ae%e4%bd%bf%e3%81%84%e6%96%b9%e7%b7%a8/#respond</comments>
		
		<dc:creator><![CDATA[aboeuser]]></dc:creator>
		<pubDate>Wed, 21 Oct 2020 13:42:40 +0000</pubDate>
				<category><![CDATA[python]]></category>
		<category><![CDATA[プログラミング]]></category>
		<category><![CDATA[独学のプログラミング]]></category>
		<category><![CDATA[python入門]]></category>
		<guid isPermaLink="false">https://aboeblog.com/?p=1006</guid>

					<description><![CDATA[前回はpythonの環境を構築して、pythonを動かせるようにしました。 初心者のためのPython入門 #0 -Pythonのはじめかた(Windows)-こんにちは 「初心者のためのPython入門」は, プログラ [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>前回はpythonの環境を構築して、pythonを動かせるようにしました。</p>
<a href="https://aboeblog.com/2020/10/20/%e5%88%9d%e5%bf%83%e8%80%85%e3%81%ae%e3%81%9f%e3%82%81%e3%81%aepython%e5%85%a5%e9%96%80-0-python%e3%81%ae%e3%81%af%e3%81%98%e3%82%81%e3%81%8b%e3%81%9fwindows/" title="初心者のためのPython入門 #0 -Pythonのはじめかた(Windows)-" class="blogcard-wrap internal-blogcard-wrap a-wrap cf"><div class="blogcard internal-blogcard ib-left cf"><div class="blogcard-label internal-blogcard-label"><span class="fa"></span></div><figure class="blogcard-thumbnail internal-blogcard-thumbnail"><img width="160" height="90" src="https://i0.wp.com/aboeblog.com/wp-content/uploads/2018/05/python_1527142244.png?resize=160%2C90&amp;ssl=1" class="blogcard-thumb-image internal-blogcard-thumb-image wp-post-image" alt="" loading="lazy" srcset="https://i0.wp.com/aboeblog.com/wp-content/uploads/2018/05/python_1527142244.png?resize=120%2C67&amp;ssl=1 120w, https://i0.wp.com/aboeblog.com/wp-content/uploads/2018/05/python_1527142244.png?resize=160%2C90&amp;ssl=1 160w, https://i0.wp.com/aboeblog.com/wp-content/uploads/2018/05/python_1527142244.png?resize=320%2C180&amp;ssl=1 320w, https://i0.wp.com/aboeblog.com/wp-content/uploads/2018/05/python_1527142244.png?resize=374%2C210&amp;ssl=1 374w, https://i0.wp.com/aboeblog.com/wp-content/uploads/2018/05/python_1527142244.png?zoom=3&amp;resize=160%2C90&amp;ssl=1 480w" sizes="(max-width: 160px) 100vw, 160px" data-attachment-id="435" data-permalink="https://aboeblog.com/program/%e3%83%97%e3%83%ad%e3%82%b0%e3%83%a9%e3%83%9f%e3%83%b3%e3%82%b0%e8%a8%80%e8%aa%9e%e3%81%a3%e3%81%a6%e3%81%84%e3%81%a3%e3%81%b1%e3%81%84%e3%81%82%e3%81%a3%e3%81%a6%e3%82%8f%e3%81%8b%e3%82%89%e3%81%aa/attachment/python/" data-orig-file="https://i0.wp.com/aboeblog.com/wp-content/uploads/2018/05/python_1527142244.png?fit=1280%2C1278&amp;ssl=1" data-orig-size="1280,1278" 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="Python" data-image-description="" data-medium-file="https://i0.wp.com/aboeblog.com/wp-content/uploads/2018/05/python_1527142244.png?fit=300%2C300&amp;ssl=1" data-large-file="https://i0.wp.com/aboeblog.com/wp-content/uploads/2018/05/python_1527142244.png?fit=1024%2C1022&amp;ssl=1" /></figure><div class="blogcard-content internal-blogcard-content"><div class="blogcard-title internal-blogcard-title">初心者のためのPython入門 #0 -Pythonのはじめかた(Windows)-</div><div class="blogcard-snippet internal-blogcard-snippet">こんにちは「初心者のためのPython入門」は,プログラミング初心者の方が、Pythonを始めて、GUI(マウスで操作するインタフェース:例デスクトップ)アプリケーションを作成できるようになることを目標としています。今回...</div></div><div class="blogcard-footer internal-blogcard-footer cf"><div class="blogcard-site internal-blogcard-site"><div class="blogcard-favicon internal-blogcard-favicon"><img src="https://www.google.com/s2/favicons?domain=aboeblog.com" alt="" class="blogcard-favicon-image internal-blogcard-favicon-image" width="16" height="16" /></div><div class="blogcard-domain internal-blogcard-domain">aboeblog.com</div></div><div class="blogcard-date internal-blogcard-date"><div class="blogcard-post-date internal-blogcard-post-date">2020.10.20</div></div></div></div></a>
<p>&nbsp;</p>
<p>今回は、Pythonの基本的な使い方を勉強していきましょう。<br />
算数でいうところの数字と四則演算です。</p>
<hr />
<p>今回の内容</p>
<p>0.準備</p>
<p>1.文字の表示</p>
<p>2.四則演算</p>
<p>です。頑張りましょう</p>

  <div id="toc" class="toc tnt-number toc-center border-element"><input type="checkbox" class="toc-checkbox" id="toc-checkbox-2" checked><label class="toc-title" for="toc-checkbox-2">目次</label>
    <div class="toc-content">
    <ol class="toc-list open"><li><a href="#toc1" tabindex="0">0.準備</a><ol><li><a href="#toc2" tabindex="0">0.0.保存先の作成</a></li><li><a href="#toc3" tabindex="0">0.1.pythonエディタを開く</a></li></ol></li><li><a href="#toc4" tabindex="0">1.文字列の表示</a><ol><li><a href="#toc5" tabindex="0">解説</a></li></ol></li><li><a href="#toc6" tabindex="0">四則演算</a><ol><li><a href="#toc7" tabindex="0">解説</a></li></ol></li><li><a href="#toc8" tabindex="0">まとめ</a></li></ol>
    </div>
  </div>

<h2><span id="toc1">0.準備</span></h2>
<h3><span id="toc2">0.0.保存先の作成</span></h3>
<p>まずは、これから作るpythonプログラムを保存するフォルダを作りましょう。</p>
<p>ちなみに私は、<br />
C:\Users\*****\Documents\hajimeteno-python<br />
という風にしました。</p>
<p>※*****は私の名前が入ってるので伏せました（笑）</p>
<h3><span id="toc3">0.1.pythonエディタを開く</span></h3>
<p>1.Windowsメニュー&gt;Python 3.9&gt; IDLE(Python 3.9 64-bit)をクリックして開きましょう。</p>
<p><img data-attachment-id="1007" data-permalink="https://aboeblog.com/program/%e5%88%9d%e5%bf%83%e8%80%85%e3%81%ae%e3%81%9f%e3%82%81%e3%81%aepython%e5%85%a5%e9%96%80-1-python%e3%81%ae%e5%9f%ba%e6%9c%ac%e3%81%ae%e4%bd%bf%e3%81%84%e6%96%b9%e7%b7%a8/attachment/%e3%82%b9%e3%82%af%e3%83%aa%e3%83%bc%e3%83%b3%e3%82%b7%e3%83%a7%e3%83%83%e3%83%88-457/" data-orig-file="https://i0.wp.com/aboeblog.com/wp-content/uploads/2020/10/スクリーンショット-457.png?fit=716%2C244&amp;ssl=1" data-orig-size="716,244" 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="スクリーンショット (457)" data-image-description="" data-medium-file="https://i0.wp.com/aboeblog.com/wp-content/uploads/2020/10/スクリーンショット-457.png?fit=300%2C102&amp;ssl=1" data-large-file="https://i0.wp.com/aboeblog.com/wp-content/uploads/2020/10/スクリーンショット-457.png?fit=716%2C244&amp;ssl=1" loading="lazy" class="alignnone size-full wp-image-1007" src="https://i0.wp.com/aboeblog.com/wp-content/uploads/2020/10/スクリーンショット-457.png?resize=716%2C244&#038;ssl=1" alt="" width="716" height="244" srcset="https://i0.wp.com/aboeblog.com/wp-content/uploads/2020/10/スクリーンショット-457.png?w=716&amp;ssl=1 716w, https://i0.wp.com/aboeblog.com/wp-content/uploads/2020/10/スクリーンショット-457.png?resize=300%2C102&amp;ssl=1 300w" sizes="(max-width: 716px) 100vw, 716px" data-recalc-dims="1" /></p>
<p>2.開いたら<br />
File&gt;New File をクリック</p>
<p><img data-attachment-id="1008" data-permalink="https://aboeblog.com/program/%e5%88%9d%e5%bf%83%e8%80%85%e3%81%ae%e3%81%9f%e3%82%81%e3%81%aepython%e5%85%a5%e9%96%80-1-python%e3%81%ae%e5%9f%ba%e6%9c%ac%e3%81%ae%e4%bd%bf%e3%81%84%e6%96%b9%e7%b7%a8/attachment/%e3%82%b9%e3%82%af%e3%83%aa%e3%83%bc%e3%83%b3%e3%82%b7%e3%83%a7%e3%83%83%e3%83%88-459/" data-orig-file="https://i0.wp.com/aboeblog.com/wp-content/uploads/2020/10/スクリーンショット-459.png?fit=835%2C480&amp;ssl=1" data-orig-size="835,480" 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="スクリーンショット (459)" data-image-description="" data-medium-file="https://i0.wp.com/aboeblog.com/wp-content/uploads/2020/10/スクリーンショット-459.png?fit=300%2C172&amp;ssl=1" data-large-file="https://i0.wp.com/aboeblog.com/wp-content/uploads/2020/10/スクリーンショット-459.png?fit=835%2C480&amp;ssl=1" loading="lazy" class="alignnone size-full wp-image-1008" src="https://i0.wp.com/aboeblog.com/wp-content/uploads/2020/10/スクリーンショット-459.png?resize=835%2C480&#038;ssl=1" alt="" width="835" height="480" srcset="https://i0.wp.com/aboeblog.com/wp-content/uploads/2020/10/スクリーンショット-459.png?w=835&amp;ssl=1 835w, https://i0.wp.com/aboeblog.com/wp-content/uploads/2020/10/スクリーンショット-459.png?resize=300%2C172&amp;ssl=1 300w, https://i0.wp.com/aboeblog.com/wp-content/uploads/2020/10/スクリーンショット-459.png?resize=768%2C441&amp;ssl=1 768w, https://i0.wp.com/aboeblog.com/wp-content/uploads/2020/10/スクリーンショット-459.png?resize=120%2C68&amp;ssl=1 120w" sizes="(max-width: 835px) 100vw, 835px" data-recalc-dims="1" /></p>
<p>クリックするとuntiteldで新しい画面が開きます。<img data-attachment-id="1009" data-permalink="https://aboeblog.com/program/%e5%88%9d%e5%bf%83%e8%80%85%e3%81%ae%e3%81%9f%e3%82%81%e3%81%aepython%e5%85%a5%e9%96%80-1-python%e3%81%ae%e5%9f%ba%e6%9c%ac%e3%81%ae%e4%bd%bf%e3%81%84%e6%96%b9%e7%b7%a8/attachment/%e3%82%b9%e3%82%af%e3%83%aa%e3%83%bc%e3%83%b3%e3%82%b7%e3%83%a7%e3%83%83%e3%83%88-460/" data-orig-file="https://i1.wp.com/aboeblog.com/wp-content/uploads/2020/10/スクリーンショット-460.png?fit=843%2C497&amp;ssl=1" data-orig-size="843,497" 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="スクリーンショット (460)" data-image-description="" data-medium-file="https://i1.wp.com/aboeblog.com/wp-content/uploads/2020/10/スクリーンショット-460.png?fit=300%2C177&amp;ssl=1" data-large-file="https://i1.wp.com/aboeblog.com/wp-content/uploads/2020/10/スクリーンショット-460.png?fit=843%2C497&amp;ssl=1" loading="lazy" class="alignnone size-full wp-image-1009" src="https://i1.wp.com/aboeblog.com/wp-content/uploads/2020/10/スクリーンショット-460.png?resize=843%2C497&#038;ssl=1" alt="" width="843" height="497" srcset="https://i1.wp.com/aboeblog.com/wp-content/uploads/2020/10/スクリーンショット-460.png?w=843&amp;ssl=1 843w, https://i1.wp.com/aboeblog.com/wp-content/uploads/2020/10/スクリーンショット-460.png?resize=300%2C177&amp;ssl=1 300w, https://i1.wp.com/aboeblog.com/wp-content/uploads/2020/10/スクリーンショット-460.png?resize=768%2C453&amp;ssl=1 768w" sizes="(max-width: 843px) 100vw, 843px" data-recalc-dims="1" /></p>
<p>これで準備は終了です。</p>
<h2><span id="toc4">1.文字列の表示</span></h2>
<p>まずは、文字列を表示します。</p>
<p>俺/私はもっとゲームとか、アプリとかかっこいいものをつくりたいんだぁぁぁあ、文字列の表示とかダサいと思っているかもしれませんが基本の基本なので我慢してください。<br />
千里の道も一歩からです。</p>
<hr />
<p>今回は、「Python初めて」と表示してみましょう。</p>
<p>先ほど開いたuntitledに</p>
<pre>print("python初めて")</pre>
<p>と入力してください。</p>
<p>入力したら、File&gt; Save as で先ほど作成したフォルダ(C:\Users\*****\Documents\hajimeteno-python)に  firstPython  の名前で保存しましょう(保存先にfirstPython.pyと保存されていたら成功です)</p>
<p>保存したら実行しましょう。<br />
Run&gt;Run Module F5をクリックで実行です。(F5キーを押しても大丈夫です)</p>
<p><img data-attachment-id="1014" data-permalink="https://aboeblog.com/program/%e5%88%9d%e5%bf%83%e8%80%85%e3%81%ae%e3%81%9f%e3%82%81%e3%81%aepython%e5%85%a5%e9%96%80-1-python%e3%81%ae%e5%9f%ba%e6%9c%ac%e3%81%ae%e4%bd%bf%e3%81%84%e6%96%b9%e7%b7%a8/attachment/%e3%82%b9%e3%82%af%e3%83%aa%e3%83%bc%e3%83%b3%e3%82%b7%e3%83%a7%e3%83%83%e3%83%88-462/" data-orig-file="https://i2.wp.com/aboeblog.com/wp-content/uploads/2020/10/-462-e1603288463990.png?fit=819%2C176&amp;ssl=1" data-orig-size="819,176" 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="スクリーンショット (462)" data-image-description="" data-medium-file="https://i2.wp.com/aboeblog.com/wp-content/uploads/2020/10/-462-e1603288463990.png?fit=300%2C64&amp;ssl=1" data-large-file="https://i2.wp.com/aboeblog.com/wp-content/uploads/2020/10/-462-e1603288463990.png?fit=819%2C176&amp;ssl=1" loading="lazy" class="alignnone wp-image-1014 size-full" src="https://i2.wp.com/aboeblog.com/wp-content/uploads/2020/10/-462-e1603288463990.png?resize=819%2C176&#038;ssl=1" alt="" width="819" height="176" srcset="https://i2.wp.com/aboeblog.com/wp-content/uploads/2020/10/-462-e1603288463990.png?w=819&amp;ssl=1 819w, https://i2.wp.com/aboeblog.com/wp-content/uploads/2020/10/-462-e1603288463990.png?resize=300%2C64&amp;ssl=1 300w, https://i2.wp.com/aboeblog.com/wp-content/uploads/2020/10/-462-e1603288463990.png?resize=768%2C165&amp;ssl=1 768w" sizes="(max-width: 819px) 100vw, 819px" data-recalc-dims="1" /></p>
<p>&nbsp;</p>
<p>クリックすると、新しい画面が開いて<span style="color: #00ccff;">Python初めて</span>と表示できました。</p>
<p><img data-attachment-id="1015" data-permalink="https://aboeblog.com/program/%e5%88%9d%e5%bf%83%e8%80%85%e3%81%ae%e3%81%9f%e3%82%81%e3%81%aepython%e5%85%a5%e9%96%80-1-python%e3%81%ae%e5%9f%ba%e6%9c%ac%e3%81%ae%e4%bd%bf%e3%81%84%e6%96%b9%e7%b7%a8/attachment/%e3%82%b9%e3%82%af%e3%83%aa%e3%83%bc%e3%83%b3%e3%82%b7%e3%83%a7%e3%83%83%e3%83%88-463/" data-orig-file="https://i0.wp.com/aboeblog.com/wp-content/uploads/2020/10/スクリーンショット-463.png?fit=826%2C239&amp;ssl=1" data-orig-size="826,239" 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="スクリーンショット (463)" data-image-description="" data-medium-file="https://i0.wp.com/aboeblog.com/wp-content/uploads/2020/10/スクリーンショット-463.png?fit=300%2C87&amp;ssl=1" data-large-file="https://i0.wp.com/aboeblog.com/wp-content/uploads/2020/10/スクリーンショット-463.png?fit=826%2C239&amp;ssl=1" loading="lazy" class="alignnone size-full wp-image-1015" src="https://i0.wp.com/aboeblog.com/wp-content/uploads/2020/10/スクリーンショット-463.png?resize=826%2C239&#038;ssl=1" alt="" width="826" height="239" srcset="https://i0.wp.com/aboeblog.com/wp-content/uploads/2020/10/スクリーンショット-463.png?w=826&amp;ssl=1 826w, https://i0.wp.com/aboeblog.com/wp-content/uploads/2020/10/スクリーンショット-463.png?resize=300%2C87&amp;ssl=1 300w, https://i0.wp.com/aboeblog.com/wp-content/uploads/2020/10/スクリーンショット-463.png?resize=768%2C222&amp;ssl=1 768w" sizes="(max-width: 826px) 100vw, 826px" data-recalc-dims="1" /></p>
<p>&nbsp;</p>
<h3><span id="toc5">解説</span></h3>
<p><strong>print(&#8220;表示したい文字列&#8221;)</strong>とすることでPythonでは文字列を表示することが出来ます。</p>
<p>もしくは、<strong>print(&#8216;表示したい文字列&#8217;)</strong>　　/   <strong> print(&#8220;&#8221;&#8221;表示したい文字列&#8221;&#8221;&#8221;)</strong></p>
<p>でも表示可能です。<br />
Pythonのルールなので覚えてください。</p>
<p>※&#8221;&#8221;, &#8221;, &#8220;&#8221;&#8221;&#8221;&#8221;&#8221;で何が変わるのかは後日解説します。</p>
<h2><span id="toc6">四則演算</span></h2>
<p>続いて四則演算をやっていきましょう。</p>
<p>先ほど作成したfirstPython.pyを開きます。(既に開いてる場合はそのままで大丈夫です)</p>
<p>そうしたら以下のコードを追加して</p>
<pre>print("1+3=",1+3)  
print("5-7=", 5-7)
print("5×10=", 5*10)
print("1÷2=",1/2)
print("1÷0=", 1/0 )</pre>
<p>上書き保存(CTRL+S)して実行(F5キー)しましょう。</p>
<p>実行すると</p>
<p><img data-attachment-id="1016" data-permalink="https://aboeblog.com/program/%e5%88%9d%e5%bf%83%e8%80%85%e3%81%ae%e3%81%9f%e3%82%81%e3%81%aepython%e5%85%a5%e9%96%80-1-python%e3%81%ae%e5%9f%ba%e6%9c%ac%e3%81%ae%e4%bd%bf%e3%81%84%e6%96%b9%e7%b7%a8/attachment/%e3%82%b9%e3%82%af%e3%83%aa%e3%83%bc%e3%83%b3%e3%82%b7%e3%83%a7%e3%83%83%e3%83%88-464/" data-orig-file="https://i2.wp.com/aboeblog.com/wp-content/uploads/2020/10/スクリーンショット-464.png?fit=839%2C407&amp;ssl=1" data-orig-size="839,407" 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="スクリーンショット (464)" data-image-description="" data-medium-file="https://i2.wp.com/aboeblog.com/wp-content/uploads/2020/10/スクリーンショット-464.png?fit=300%2C146&amp;ssl=1" data-large-file="https://i2.wp.com/aboeblog.com/wp-content/uploads/2020/10/スクリーンショット-464.png?fit=839%2C407&amp;ssl=1" loading="lazy" class="alignnone size-full wp-image-1016" src="https://i2.wp.com/aboeblog.com/wp-content/uploads/2020/10/スクリーンショット-464.png?resize=839%2C407&#038;ssl=1" alt="" width="839" height="407" srcset="https://i2.wp.com/aboeblog.com/wp-content/uploads/2020/10/スクリーンショット-464.png?w=839&amp;ssl=1 839w, https://i2.wp.com/aboeblog.com/wp-content/uploads/2020/10/スクリーンショット-464.png?resize=300%2C146&amp;ssl=1 300w, https://i2.wp.com/aboeblog.com/wp-content/uploads/2020/10/スクリーンショット-464.png?resize=768%2C373&amp;ssl=1 768w" sizes="(max-width: 839px) 100vw, 839px" data-recalc-dims="1" /></p>
<p>と表示されたら成功です。</p>
<h3><span id="toc7">解説</span></h3>
<p>print(&#8220;1+3=&#8221;, 1+3)  の左側&#8221;1+3=&#8221;の部分は1+3を画面に表示する役割です。<br />
実際に1+3を計算している部分は右側です。</p>
<div class="information-box common-icon-box">いまいちわからなかったという方は<br />
print(&#8220;1+3=&#8221;, 1+100)<br />
と書き換えて実行してみてください。(1+3=101と表示されます)</div>
<hr />
<p>足し算は + ,  引き算は &#8211; と分かりやすいですが、</p>
<p>掛け算は  * (アスタリスク)</p>
<p>割り算は  /  (スラッシュ)</p>
<p>です。</p>
<hr />
<p>また、 % を使うことで&#8221;余り(剰余)&#8221;を計算することもできます。</p>
<p>例.</p>
<pre>print("13を5で割った余りは",13%5)</pre>
<p>と追加して実行すると</p>
<p>3が表示されるはずです。</p>
<p>これらの四則演算もPythonでのお決まり事なので覚えてください。</p>
<h2><span id="toc8">まとめ</span></h2>
<div>文字列の表示は,</div>
<div>
<p><strong>print(&#8220;表示したい文字列&#8221;)</strong>とすることでPythonでは文字列を表示することが出来ます。</p>
<p>もしくは、<strong>print(&#8216;表示したい文字列&#8217;)</strong>　　/   <strong> print(&#8220;&#8221;&#8221;表示したい文字列&#8221;&#8221;&#8221;)</strong></p>
<hr />
</div>
<p>足し算は +</p>
<p>引き算は &#8211;</p>
<p>掛け算は *</p>
<p>割り算は /</p>
<p>余り(剰余)は %</p>
<p>です。</p>
<p>&nbsp;</p>
<p>次回は、変数と型 について解説します。</p>
]]></content:encoded>
					
					<wfw:commentRss>https://aboeblog.com/program/%e5%88%9d%e5%bf%83%e8%80%85%e3%81%ae%e3%81%9f%e3%82%81%e3%81%aepython%e5%85%a5%e9%96%80-1-python%e3%81%ae%e5%9f%ba%e6%9c%ac%e3%81%ae%e4%bd%bf%e3%81%84%e6%96%b9%e7%b7%a8/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">1006</post-id>	</item>
		<item>
		<title>初心者のためのPython入門 #0 -Pythonのはじめかた(Windows)-</title>
		<link>https://aboeblog.com/program/python/%e5%88%9d%e5%bf%83%e8%80%85%e3%81%ae%e3%81%9f%e3%82%81%e3%81%aepython%e5%85%a5%e9%96%80-0-python%e3%81%ae%e3%81%af%e3%81%98%e3%82%81%e3%81%8b%e3%81%9fwindows/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=%25e5%2588%259d%25e5%25bf%2583%25e8%2580%2585%25e3%2581%25ae%25e3%2581%259f%25e3%2582%2581%25e3%2581%25aepython%25e5%2585%25a5%25e9%2596%2580-0-python%25e3%2581%25ae%25e3%2581%25af%25e3%2581%2598%25e3%2582%2581%25e3%2581%258b%25e3%2581%259fwindows</link>
					<comments>https://aboeblog.com/program/python/%e5%88%9d%e5%bf%83%e8%80%85%e3%81%ae%e3%81%9f%e3%82%81%e3%81%aepython%e5%85%a5%e9%96%80-0-python%e3%81%ae%e3%81%af%e3%81%98%e3%82%81%e3%81%8b%e3%81%9fwindows/#respond</comments>
		
		<dc:creator><![CDATA[aboeuser]]></dc:creator>
		<pubDate>Tue, 20 Oct 2020 13:52:59 +0000</pubDate>
				<category><![CDATA[python]]></category>
		<category><![CDATA[独学のプログラミング]]></category>
		<category><![CDATA[python入門]]></category>
		<guid isPermaLink="false">https://aboeblog.com/?p=989</guid>

					<description><![CDATA[こんにちは 「初心者のためのPython入門」は, プログラミング初心者の方が、Pythonを始めて、GUI(マウスで操作するインタフェース:例デスクトップ)アプリケーションを作成できるようになることを目標としています。 [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>こんにちは</p>
<p>「初心者のためのPython入門」は,<br />
プログラミング初心者の方が、Pythonを始めて、GUI(マウスで操作するインタフェース:例デスクトップ)アプリケーションを作成できるようになることを目標としています。</p>
<p>今回は、0回目なので、PCでPythonを動かすことが出来るようにする回です。<br />
(動かすことが出来るようにすることを<strong>環境構築</strong>といいます)</p>
<div class="blogcard-type bct-together">
<p>始める前に、なぜプログラミングをするのか考えるのがおすすめです</p>
<a href="https://aboeblog.com/2020/10/12/%e5%88%9d%e5%bf%83%e8%80%85%e3%83%bb%e6%9c%aa%e7%b5%8c%e9%a8%93%e8%80%85%e3%81%8c%e3%83%97%e3%83%ad%e3%82%b0%e3%83%a9%e3%83%9f%e3%83%b3%e3%82%b0%e5%8b%89%e5%bc%b7%e3%81%a7%e6%88%90%e5%8a%9f%e3%81%99/" title="初心者・未経験者がプログラミング勉強で成功する方法(独学)" class="blogcard-wrap internal-blogcard-wrap a-wrap cf"><div class="blogcard internal-blogcard ib-left cf"><div class="blogcard-label internal-blogcard-label"><span class="fa"></span></div><figure class="blogcard-thumbnail internal-blogcard-thumbnail"><img width="160" height="90" src="https://i2.wp.com/aboeblog.com/wp-content/uploads/2020/10/sick_panic_man-e1602505234630.png?resize=150%2C90&amp;ssl=1" class="blogcard-thumb-image internal-blogcard-thumb-image wp-post-image" alt="" loading="lazy" srcset="https://i2.wp.com/aboeblog.com/wp-content/uploads/2020/10/sick_panic_man-e1602505234630.png?zoom=2&amp;resize=160%2C90&amp;ssl=1 320w, https://i2.wp.com/aboeblog.com/wp-content/uploads/2020/10/sick_panic_man-e1602505234630.png?zoom=3&amp;resize=160%2C90&amp;ssl=1 480w" sizes="(max-width: 160px) 100vw, 160px" data-attachment-id="974" data-permalink="https://aboeblog.com/program/%e5%88%9d%e5%bf%83%e8%80%85%e3%83%bb%e6%9c%aa%e7%b5%8c%e9%a8%93%e8%80%85%e3%81%8c%e3%83%97%e3%83%ad%e3%82%b0%e3%83%a9%e3%83%9f%e3%83%b3%e3%82%b0%e5%8b%89%e5%bc%b7%e3%81%a7%e6%88%90%e5%8a%9f%e3%81%99/attachment/sick_panic_man/" data-orig-file="https://i2.wp.com/aboeblog.com/wp-content/uploads/2020/10/sick_panic_man-e1602505234630.png?fit=150%2C176&amp;ssl=1" data-orig-size="150,176" 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="sick_panic_man" data-image-description="" data-medium-file="https://i2.wp.com/aboeblog.com/wp-content/uploads/2020/10/sick_panic_man-e1602505234630.png?fit=256%2C300&amp;ssl=1" data-large-file="https://i2.wp.com/aboeblog.com/wp-content/uploads/2020/10/sick_panic_man-e1602505234630.png?fit=150%2C176&amp;ssl=1" /></figure><div class="blogcard-content internal-blogcard-content"><div class="blogcard-title internal-blogcard-title">初心者・未経験者がプログラミング勉強で成功する方法(独学)</div><div class="blogcard-snippet internal-blogcard-snippet">こんにちは、初心者・未経験者がプログラミング勉強を成功するための方法です。今回は、本当の本当に、これからプログラミングを始めるぞ!でも、何から手をつければいいのかわからない...泣という方を対象としています。...</div></div><div class="blogcard-footer internal-blogcard-footer cf"><div class="blogcard-site internal-blogcard-site"><div class="blogcard-favicon internal-blogcard-favicon"><img src="https://www.google.com/s2/favicons?domain=aboeblog.com" alt="" class="blogcard-favicon-image internal-blogcard-favicon-image" width="16" height="16" /></div><div class="blogcard-domain internal-blogcard-domain">aboeblog.com</div></div><div class="blogcard-date internal-blogcard-date"><div class="blogcard-post-date internal-blogcard-post-date">2020.10.12</div></div></div></div></a>
</div>

  <div id="toc" class="toc tnt-number toc-center border-element"><input type="checkbox" class="toc-checkbox" id="toc-checkbox-4" checked><label class="toc-title" for="toc-checkbox-4">目次</label>
    <div class="toc-content">
    <ol class="toc-list open"><li><a href="#toc1" tabindex="0">必要なもの</a></li><li><a href="#toc2" tabindex="0">実行手順</a></li><li><a href="#toc3" tabindex="0">うまく環境構築できているか確認</a></li><li><a href="#toc4" tabindex="0">まとめ</a></li></ol>
    </div>
  </div>

<h2><span id="toc1">必要なもの</span></h2>
<p>これらは必ずいるので用意しましょう</p>
<ul>
<li>PC(Windows/MAC/linux)</li>
<li>ネット環境</li>
</ul>
<p>今回はWindowsへのPythonの環境構築手順を説明していきます。</p>
<p>※PCのスペックが低くてもできますが、快適に勉強したいなら高スペックPCを買った方がいいです。</p>
<div class="blogcard-type bct-together">
<a href="https://aboeblog.com/2018/05/22/post-394/" title="プログラミングを早く上達させたいならハイスペックPCを買え!" class="blogcard-wrap internal-blogcard-wrap a-wrap cf"><div class="blogcard internal-blogcard ib-left cf"><div class="blogcard-label internal-blogcard-label"><span class="fa"></span></div><figure class="blogcard-thumbnail internal-blogcard-thumbnail"><img width="160" height="90" src="https://i1.wp.com/aboeblog.com/wp-content/uploads/2018/05/html_1526990697.png?resize=160%2C90&amp;ssl=1" class="blogcard-thumb-image internal-blogcard-thumb-image wp-post-image" alt="" loading="lazy" srcset="https://i1.wp.com/aboeblog.com/wp-content/uploads/2018/05/html_1526990697.png?w=1280&amp;ssl=1 1280w, https://i1.wp.com/aboeblog.com/wp-content/uploads/2018/05/html_1526990697.png?resize=300%2C169&amp;ssl=1 300w, https://i1.wp.com/aboeblog.com/wp-content/uploads/2018/05/html_1526990697.png?resize=768%2C432&amp;ssl=1 768w, https://i1.wp.com/aboeblog.com/wp-content/uploads/2018/05/html_1526990697.png?resize=1024%2C576&amp;ssl=1 1024w, https://i1.wp.com/aboeblog.com/wp-content/uploads/2018/05/html_1526990697.png?resize=120%2C67&amp;ssl=1 120w, https://i1.wp.com/aboeblog.com/wp-content/uploads/2018/05/html_1526990697.png?resize=160%2C90&amp;ssl=1 160w, https://i1.wp.com/aboeblog.com/wp-content/uploads/2018/05/html_1526990697.png?resize=320%2C180&amp;ssl=1 320w, https://i1.wp.com/aboeblog.com/wp-content/uploads/2018/05/html_1526990697.png?resize=374%2C210&amp;ssl=1 374w" sizes="(max-width: 160px) 100vw, 160px" data-attachment-id="396" data-permalink="https://aboeblog.com/program/post-394/attachment/html-2/" data-orig-file="https://i1.wp.com/aboeblog.com/wp-content/uploads/2018/05/html_1526990697.png?fit=1280%2C720&amp;ssl=1" data-orig-size="1280,720" 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="Html" data-image-description="" data-medium-file="https://i1.wp.com/aboeblog.com/wp-content/uploads/2018/05/html_1526990697.png?fit=300%2C169&amp;ssl=1" data-large-file="https://i1.wp.com/aboeblog.com/wp-content/uploads/2018/05/html_1526990697.png?fit=1024%2C576&amp;ssl=1" /></figure><div class="blogcard-content internal-blogcard-content"><div class="blogcard-title internal-blogcard-title">プログラミングを早く上達させたいならハイスペックPCを買え!</div><div class="blogcard-snippet internal-blogcard-snippet">今回は、プログラミングを上達させたいならハイスペックPCを買うのが最適解な理由を説明します。プログラミングしたいけど、どんなPCを買ったらいいのかわからない。ちょっと高くて買うのを躊躇しているのを後押しするのが目的です。...</div></div><div class="blogcard-footer internal-blogcard-footer cf"><div class="blogcard-site internal-blogcard-site"><div class="blogcard-favicon internal-blogcard-favicon"><img src="https://www.google.com/s2/favicons?domain=aboeblog.com" alt="" class="blogcard-favicon-image internal-blogcard-favicon-image" width="16" height="16" /></div><div class="blogcard-domain internal-blogcard-domain">aboeblog.com</div></div><div class="blogcard-date internal-blogcard-date"><div class="blogcard-post-date internal-blogcard-post-date">2018.05.22</div></div></div></div></a>
</div>
<h2><span id="toc2">実行手順</span></h2>
<p>まず、Pythonの公式サイト</p>
<div class="blogcard-type bct-official">
<a rel="follow noopener" target="_blank" href="https://www.python.org/" title="Welcome to Python.org" class="blogcard-wrap external-blogcard-wrap a-wrap cf"><div class="blogcard external-blogcard eb-left cf"><div class="blogcard-label external-blogcard-label"><span class="fa"></span></div><figure class="blogcard-thumbnail external-blogcard-thumbnail"><img src="https://s0.wordpress.com/mshots/v1/https%3A%2F%2Fwww.python.org%2F?w=160&#038;h=90" alt="" class="blogcard-thumb-image external-blogcard-thumb-image" width="160" height="90" /></figure><div class="blogcard-content external-blogcard-content"><div class="blogcard-title external-blogcard-title">Welcome to Python.org</div><div class="blogcard-snippet external-blogcard-snippet">The official home of the Python Programming Language</div></div><div class="blogcard-footer external-blogcard-footer cf"><div class="blogcard-site external-blogcard-site"><div class="blogcard-favicon external-blogcard-favicon"><img src="https://www.google.com/s2/favicons?domain=www.python.org" alt="" class="blogcard-favicon-image external-blogcard-favicon-image" width="16" height="16" /></div><div class="blogcard-domain external-blogcard-domain">www.python.org</div></div></div></div></a>
</div>
<p>へアクセスします。</p>
<p><img data-attachment-id="995" data-permalink="https://aboeblog.com/program/python/%e5%88%9d%e5%bf%83%e8%80%85%e3%81%ae%e3%81%9f%e3%82%81%e3%81%aepython%e5%85%a5%e9%96%80-0-python%e3%81%ae%e3%81%af%e3%81%98%e3%82%81%e3%81%8b%e3%81%9fwindows/attachment/%e3%82%b9%e3%82%af%e3%83%aa%e3%83%bc%e3%83%b3%e3%82%b7%e3%83%a7%e3%83%83%e3%83%88-446/" data-orig-file="https://i0.wp.com/aboeblog.com/wp-content/uploads/2020/10/スクリーンショット-446.jpg?fit=1920%2C1080&amp;ssl=1" data-orig-size="1920,1080" 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="スクリーンショット (446)" data-image-description="" data-medium-file="https://i0.wp.com/aboeblog.com/wp-content/uploads/2020/10/スクリーンショット-446.jpg?fit=300%2C169&amp;ssl=1" data-large-file="https://i0.wp.com/aboeblog.com/wp-content/uploads/2020/10/スクリーンショット-446.jpg?fit=1024%2C576&amp;ssl=1" loading="lazy" class="alignnone size-large wp-image-995" src="https://i0.wp.com/aboeblog.com/wp-content/uploads/2020/10/スクリーンショット-446.jpg?resize=1024%2C576&#038;ssl=1" alt="" width="1024" height="576" srcset="https://i0.wp.com/aboeblog.com/wp-content/uploads/2020/10/スクリーンショット-446.jpg?resize=1024%2C576&amp;ssl=1 1024w, https://i0.wp.com/aboeblog.com/wp-content/uploads/2020/10/スクリーンショット-446.jpg?resize=300%2C169&amp;ssl=1 300w, https://i0.wp.com/aboeblog.com/wp-content/uploads/2020/10/スクリーンショット-446.jpg?resize=768%2C432&amp;ssl=1 768w, https://i0.wp.com/aboeblog.com/wp-content/uploads/2020/10/スクリーンショット-446.jpg?resize=1536%2C864&amp;ssl=1 1536w, https://i0.wp.com/aboeblog.com/wp-content/uploads/2020/10/スクリーンショット-446.jpg?resize=120%2C68&amp;ssl=1 120w, https://i0.wp.com/aboeblog.com/wp-content/uploads/2020/10/スクリーンショット-446.jpg?resize=160%2C90&amp;ssl=1 160w, https://i0.wp.com/aboeblog.com/wp-content/uploads/2020/10/スクリーンショット-446.jpg?resize=320%2C180&amp;ssl=1 320w, https://i0.wp.com/aboeblog.com/wp-content/uploads/2020/10/スクリーンショット-446.jpg?resize=374%2C210&amp;ssl=1 374w, https://i0.wp.com/aboeblog.com/wp-content/uploads/2020/10/スクリーンショット-446.jpg?w=1920&amp;ssl=1 1920w" sizes="(max-width: 1024px) 100vw, 1024px" data-recalc-dims="1" /></p>
<p>1.上の写真のDownloads(赤線部)をクリックします。</p>
<p><img data-attachment-id="997" data-permalink="https://aboeblog.com/program/python/%e5%88%9d%e5%bf%83%e8%80%85%e3%81%ae%e3%81%9f%e3%82%81%e3%81%aepython%e5%85%a5%e9%96%80-0-python%e3%81%ae%e3%81%af%e3%81%98%e3%82%81%e3%81%8b%e3%81%9fwindows/attachment/%e3%82%b9%e3%82%af%e3%83%aa%e3%83%bc%e3%83%b3%e3%82%b7%e3%83%a7%e3%83%83%e3%83%88-447/" data-orig-file="https://i0.wp.com/aboeblog.com/wp-content/uploads/2020/10/スクリーンショット-447.jpg?fit=1920%2C1080&amp;ssl=1" data-orig-size="1920,1080" 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="スクリーンショット (447)" data-image-description="" data-medium-file="https://i0.wp.com/aboeblog.com/wp-content/uploads/2020/10/スクリーンショット-447.jpg?fit=300%2C169&amp;ssl=1" data-large-file="https://i0.wp.com/aboeblog.com/wp-content/uploads/2020/10/スクリーンショット-447.jpg?fit=1024%2C576&amp;ssl=1" loading="lazy" class="alignnone size-large wp-image-997" src="https://i0.wp.com/aboeblog.com/wp-content/uploads/2020/10/スクリーンショット-447.jpg?resize=1024%2C576&#038;ssl=1" alt="" width="1024" height="576" srcset="https://i0.wp.com/aboeblog.com/wp-content/uploads/2020/10/スクリーンショット-447.jpg?resize=1024%2C576&amp;ssl=1 1024w, https://i0.wp.com/aboeblog.com/wp-content/uploads/2020/10/スクリーンショット-447.jpg?resize=300%2C169&amp;ssl=1 300w, https://i0.wp.com/aboeblog.com/wp-content/uploads/2020/10/スクリーンショット-447.jpg?resize=768%2C432&amp;ssl=1 768w, https://i0.wp.com/aboeblog.com/wp-content/uploads/2020/10/スクリーンショット-447.jpg?resize=1536%2C864&amp;ssl=1 1536w, https://i0.wp.com/aboeblog.com/wp-content/uploads/2020/10/スクリーンショット-447.jpg?resize=120%2C68&amp;ssl=1 120w, https://i0.wp.com/aboeblog.com/wp-content/uploads/2020/10/スクリーンショット-447.jpg?resize=160%2C90&amp;ssl=1 160w, https://i0.wp.com/aboeblog.com/wp-content/uploads/2020/10/スクリーンショット-447.jpg?resize=320%2C180&amp;ssl=1 320w, https://i0.wp.com/aboeblog.com/wp-content/uploads/2020/10/スクリーンショット-447.jpg?resize=374%2C210&amp;ssl=1 374w, https://i0.wp.com/aboeblog.com/wp-content/uploads/2020/10/スクリーンショット-447.jpg?w=1920&amp;ssl=1 1920w" sizes="(max-width: 1024px) 100vw, 1024px" data-recalc-dims="1" /></p>
<p>2.上の写真のDownload Python 3.9.0をクリック<br />
<img data-attachment-id="998" data-permalink="https://aboeblog.com/program/python/%e5%88%9d%e5%bf%83%e8%80%85%e3%81%ae%e3%81%9f%e3%82%81%e3%81%aepython%e5%85%a5%e9%96%80-0-python%e3%81%ae%e3%81%af%e3%81%98%e3%82%81%e3%81%8b%e3%81%9fwindows/attachment/%e3%82%b9%e3%82%af%e3%83%aa%e3%83%bc%e3%83%b3%e3%82%b7%e3%83%a7%e3%83%83%e3%83%88-448-2/" data-orig-file="https://i1.wp.com/aboeblog.com/wp-content/uploads/2020/10/スクリーンショット-448.png?fit=649%2C290&amp;ssl=1" data-orig-size="649,290" 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="スクリーンショット (448)" data-image-description="" data-medium-file="https://i1.wp.com/aboeblog.com/wp-content/uploads/2020/10/スクリーンショット-448.png?fit=300%2C134&amp;ssl=1" data-large-file="https://i1.wp.com/aboeblog.com/wp-content/uploads/2020/10/スクリーンショット-448.png?fit=649%2C290&amp;ssl=1" loading="lazy" class="alignnone size-full wp-image-998" src="https://i1.wp.com/aboeblog.com/wp-content/uploads/2020/10/スクリーンショット-448.png?resize=649%2C290&#038;ssl=1" alt="" width="649" height="290" srcset="https://i1.wp.com/aboeblog.com/wp-content/uploads/2020/10/スクリーンショット-448.png?w=649&amp;ssl=1 649w, https://i1.wp.com/aboeblog.com/wp-content/uploads/2020/10/スクリーンショット-448.png?resize=300%2C134&amp;ssl=1 300w" sizes="(max-width: 649px) 100vw, 649px" data-recalc-dims="1" /></p>
<p>3.ファイルを保存をクリック</p>
<p>4.保存したファイル(自分の保存したフォルダにあります)をダブルクリックして実行。</p>
<p><img data-attachment-id="1000" data-permalink="https://aboeblog.com/program/python/%e5%88%9d%e5%bf%83%e8%80%85%e3%81%ae%e3%81%9f%e3%82%81%e3%81%aepython%e5%85%a5%e9%96%80-0-python%e3%81%ae%e3%81%af%e3%81%98%e3%82%81%e3%81%8b%e3%81%9fwindows/attachment/%e3%82%b9%e3%82%af%e3%83%aa%e3%83%bc%e3%83%b3%e3%82%b7%e3%83%a7%e3%83%83%e3%83%88-450-2/" data-orig-file="https://i2.wp.com/aboeblog.com/wp-content/uploads/2020/10/スクリーンショット-450-1.png?fit=999%2C614&amp;ssl=1" data-orig-size="999,614" 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="スクリーンショット (450)" data-image-description="" data-medium-file="https://i2.wp.com/aboeblog.com/wp-content/uploads/2020/10/スクリーンショット-450-1.png?fit=300%2C184&amp;ssl=1" data-large-file="https://i2.wp.com/aboeblog.com/wp-content/uploads/2020/10/スクリーンショット-450-1.png?fit=999%2C614&amp;ssl=1" loading="lazy" class="alignnone size-full wp-image-1000" src="https://i2.wp.com/aboeblog.com/wp-content/uploads/2020/10/スクリーンショット-450-1.png?resize=999%2C614&#038;ssl=1" alt="" width="999" height="614" srcset="https://i2.wp.com/aboeblog.com/wp-content/uploads/2020/10/スクリーンショット-450-1.png?w=999&amp;ssl=1 999w, https://i2.wp.com/aboeblog.com/wp-content/uploads/2020/10/スクリーンショット-450-1.png?resize=300%2C184&amp;ssl=1 300w, https://i2.wp.com/aboeblog.com/wp-content/uploads/2020/10/スクリーンショット-450-1.png?resize=768%2C472&amp;ssl=1 768w" sizes="(max-width: 999px) 100vw, 999px" data-recalc-dims="1" /></p>
<p><span class="marker-red" style="font-size: 20px;"><strong>5.Add Python 3.9 to PATHにチェックを入れてください</strong></span></p>
<p>6.Install Nowをクリック</p>
<p>7.このアプリがデバイスに変更を加えますか?→「はい」をクリック</p>
<p><img data-attachment-id="1001" data-permalink="https://aboeblog.com/program/python/%e5%88%9d%e5%bf%83%e8%80%85%e3%81%ae%e3%81%9f%e3%82%81%e3%81%aepython%e5%85%a5%e9%96%80-0-python%e3%81%ae%e3%81%af%e3%81%98%e3%82%81%e3%81%8b%e3%81%9fwindows/attachment/%e3%82%b9%e3%82%af%e3%83%aa%e3%83%bc%e3%83%b3%e3%82%b7%e3%83%a7%e3%83%83%e3%83%88-451/" data-orig-file="https://i1.wp.com/aboeblog.com/wp-content/uploads/2020/10/スクリーンショット-451.png?fit=997%2C608&amp;ssl=1" data-orig-size="997,608" 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="スクリーンショット (451)" data-image-description="" data-medium-file="https://i1.wp.com/aboeblog.com/wp-content/uploads/2020/10/スクリーンショット-451.png?fit=300%2C183&amp;ssl=1" data-large-file="https://i1.wp.com/aboeblog.com/wp-content/uploads/2020/10/スクリーンショット-451.png?fit=997%2C608&amp;ssl=1" loading="lazy" class="alignnone size-full wp-image-1001" src="https://i1.wp.com/aboeblog.com/wp-content/uploads/2020/10/スクリーンショット-451.png?resize=997%2C608&#038;ssl=1" alt="" width="997" height="608" srcset="https://i1.wp.com/aboeblog.com/wp-content/uploads/2020/10/スクリーンショット-451.png?w=997&amp;ssl=1 997w, https://i1.wp.com/aboeblog.com/wp-content/uploads/2020/10/スクリーンショット-451.png?resize=300%2C183&amp;ssl=1 300w, https://i1.wp.com/aboeblog.com/wp-content/uploads/2020/10/スクリーンショット-451.png?resize=768%2C468&amp;ssl=1 768w" sizes="(max-width: 997px) 100vw, 997px" data-recalc-dims="1" /></p>
<p>この画面になれば終了です。</p>
<p>8. closeをクリック</p>
<p>&nbsp;</p>
<h2><span id="toc3">うまく環境構築できているか確認</span></h2>
<p><img data-attachment-id="1002" data-permalink="https://aboeblog.com/program/python/%e5%88%9d%e5%bf%83%e8%80%85%e3%81%ae%e3%81%9f%e3%82%81%e3%81%aepython%e5%85%a5%e9%96%80-0-python%e3%81%ae%e3%81%af%e3%81%98%e3%82%81%e3%81%8b%e3%81%9fwindows/attachment/%e3%82%b9%e3%82%af%e3%83%aa%e3%83%bc%e3%83%b3%e3%82%b7%e3%83%a7%e3%83%83%e3%83%88-452/" data-orig-file="https://i2.wp.com/aboeblog.com/wp-content/uploads/2020/10/-452-e1603201732569.png?fit=1920%2C408&amp;ssl=1" data-orig-size="1920,408" 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="スクリーンショット (452)" data-image-description="" data-medium-file="https://i2.wp.com/aboeblog.com/wp-content/uploads/2020/10/-452-e1603201732569.png?fit=300%2C64&amp;ssl=1" data-large-file="https://i2.wp.com/aboeblog.com/wp-content/uploads/2020/10/-452-e1603201732569.png?fit=1024%2C218&amp;ssl=1" loading="lazy" class="alignnone wp-image-1002 size-large" src="https://i2.wp.com/aboeblog.com/wp-content/uploads/2020/10/-452-e1603201732569-1024x218.png?resize=1024%2C218&#038;ssl=1" alt="" width="1024" height="218" srcset="https://i2.wp.com/aboeblog.com/wp-content/uploads/2020/10/-452-e1603201732569.png?resize=1024%2C218&amp;ssl=1 1024w, https://i2.wp.com/aboeblog.com/wp-content/uploads/2020/10/-452-e1603201732569.png?resize=300%2C64&amp;ssl=1 300w, https://i2.wp.com/aboeblog.com/wp-content/uploads/2020/10/-452-e1603201732569.png?resize=768%2C163&amp;ssl=1 768w, https://i2.wp.com/aboeblog.com/wp-content/uploads/2020/10/-452-e1603201732569.png?resize=1536%2C326&amp;ssl=1 1536w, https://i2.wp.com/aboeblog.com/wp-content/uploads/2020/10/-452-e1603201732569.png?w=1920&amp;ssl=1 1920w" sizes="(max-width: 1024px) 100vw, 1024px" data-recalc-dims="1" /></p>
<p>1.検索マーク(赤枠)をクリックして　cmd  と入力してエンター</p>
<p><img data-attachment-id="1003" data-permalink="https://aboeblog.com/program/python/%e5%88%9d%e5%bf%83%e8%80%85%e3%81%ae%e3%81%9f%e3%82%81%e3%81%aepython%e5%85%a5%e9%96%80-0-python%e3%81%ae%e3%81%af%e3%81%98%e3%82%81%e3%81%8b%e3%81%9fwindows/attachment/%e3%82%b9%e3%82%af%e3%83%aa%e3%83%bc%e3%83%b3%e3%82%b7%e3%83%a7%e3%83%83%e3%83%88-454/" data-orig-file="https://i0.wp.com/aboeblog.com/wp-content/uploads/2020/10/-454-e1603201710961.png?fit=1466%2C242&amp;ssl=1" data-orig-size="1466,242" 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="スクリーンショット (454)" data-image-description="" data-medium-file="https://i0.wp.com/aboeblog.com/wp-content/uploads/2020/10/-454-e1603201710961.png?fit=300%2C50&amp;ssl=1" data-large-file="https://i0.wp.com/aboeblog.com/wp-content/uploads/2020/10/-454-e1603201710961.png?fit=1024%2C169&amp;ssl=1" loading="lazy" class="alignnone wp-image-1003 size-large" src="https://i1.wp.com/aboeblog.com/wp-content/uploads/2020/10/-454-e1603201710961-1024x169.png?resize=1024%2C169&#038;ssl=1" alt="" width="1024" height="169" srcset="https://i0.wp.com/aboeblog.com/wp-content/uploads/2020/10/-454-e1603201710961.png?resize=1024%2C169&amp;ssl=1 1024w, https://i0.wp.com/aboeblog.com/wp-content/uploads/2020/10/-454-e1603201710961.png?resize=300%2C50&amp;ssl=1 300w, https://i0.wp.com/aboeblog.com/wp-content/uploads/2020/10/-454-e1603201710961.png?resize=768%2C127&amp;ssl=1 768w, https://i0.wp.com/aboeblog.com/wp-content/uploads/2020/10/-454-e1603201710961.png?w=1466&amp;ssl=1 1466w" sizes="(max-width: 1024px) 100vw, 1024px" data-recalc-dims="1" /></p>
<p>コマンドプロンプト(こんな画面)が開けばオッケーです。</p>
<p>2. コマンドプロンプトに　　python　　と入力してエンター</p>
<p><img data-attachment-id="1004" data-permalink="https://aboeblog.com/program/python/%e5%88%9d%e5%bf%83%e8%80%85%e3%81%ae%e3%81%9f%e3%82%81%e3%81%aepython%e5%85%a5%e9%96%80-0-python%e3%81%ae%e3%81%af%e3%81%98%e3%82%81%e3%81%8b%e3%81%9fwindows/attachment/%e3%82%b9%e3%82%af%e3%83%aa%e3%83%bc%e3%83%b3%e3%82%b7%e3%83%a7%e3%83%83%e3%83%88-455/" data-orig-file="https://i0.wp.com/aboeblog.com/wp-content/uploads/2020/10/-455-e1603201655289.png?fit=1461%2C222&amp;ssl=1" data-orig-size="1461,222" 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="スクリーンショット (455)" data-image-description="" data-medium-file="https://i0.wp.com/aboeblog.com/wp-content/uploads/2020/10/-455-e1603201655289.png?fit=300%2C46&amp;ssl=1" data-large-file="https://i0.wp.com/aboeblog.com/wp-content/uploads/2020/10/-455-e1603201655289.png?fit=1024%2C156&amp;ssl=1" loading="lazy" class="alignnone wp-image-1004 size-large" src="https://i1.wp.com/aboeblog.com/wp-content/uploads/2020/10/-455-e1603201655289-1024x156.png?resize=1024%2C156&#038;ssl=1" alt="" width="1024" height="156" srcset="https://i0.wp.com/aboeblog.com/wp-content/uploads/2020/10/-455-e1603201655289.png?resize=1024%2C156&amp;ssl=1 1024w, https://i0.wp.com/aboeblog.com/wp-content/uploads/2020/10/-455-e1603201655289.png?resize=300%2C46&amp;ssl=1 300w, https://i0.wp.com/aboeblog.com/wp-content/uploads/2020/10/-455-e1603201655289.png?resize=768%2C117&amp;ssl=1 768w, https://i0.wp.com/aboeblog.com/wp-content/uploads/2020/10/-455-e1603201655289.png?w=1461&amp;ssl=1 1461w" sizes="(max-width: 1024px) 100vw, 1024px" data-recalc-dims="1" /></p>
<p>Python 3.9.0 ~~~~と表示されたら無事インストールされています。</p>
<p>これで、Pythonの環境構築は終了です。</p>
<p>&nbsp;</p>
<h2><span id="toc4">まとめ</span></h2>
<p>Pythonを<a rel="follow noopener" target="_blank" href="https://www.python.org/">https://www.python.org/</a></p>
<p>からインストールできましたね。</p>
<p>お疲れ様でした。</p>
<p>次回は、Pythonの基本的な操作を解説していきます。</p>
<p>算数でいう、&#8221;数字&#8221;のようなものです。</p>
<div class="blogcard-type bct-detail">
<a href="https://aboeblog.com/?p=1006&#038;preview=true" title="初心者のためのPython入門 #1 -Pythonの基本の使い方編-" class="blogcard-wrap internal-blogcard-wrap a-wrap cf"><div class="blogcard internal-blogcard ib-left cf"><div class="blogcard-label internal-blogcard-label"><span class="fa"></span></div><figure class="blogcard-thumbnail internal-blogcard-thumbnail"><img width="160" height="90" src="https://i0.wp.com/aboeblog.com/wp-content/uploads/2018/05/python_1527142244.png?resize=160%2C90&amp;ssl=1" class="blogcard-thumb-image internal-blogcard-thumb-image wp-post-image" alt="" loading="lazy" srcset="https://i0.wp.com/aboeblog.com/wp-content/uploads/2018/05/python_1527142244.png?resize=120%2C67&amp;ssl=1 120w, https://i0.wp.com/aboeblog.com/wp-content/uploads/2018/05/python_1527142244.png?resize=160%2C90&amp;ssl=1 160w, https://i0.wp.com/aboeblog.com/wp-content/uploads/2018/05/python_1527142244.png?resize=320%2C180&amp;ssl=1 320w, https://i0.wp.com/aboeblog.com/wp-content/uploads/2018/05/python_1527142244.png?resize=374%2C210&amp;ssl=1 374w, https://i0.wp.com/aboeblog.com/wp-content/uploads/2018/05/python_1527142244.png?zoom=3&amp;resize=160%2C90&amp;ssl=1 480w" sizes="(max-width: 160px) 100vw, 160px" data-attachment-id="435" data-permalink="https://aboeblog.com/program/%e3%83%97%e3%83%ad%e3%82%b0%e3%83%a9%e3%83%9f%e3%83%b3%e3%82%b0%e8%a8%80%e8%aa%9e%e3%81%a3%e3%81%a6%e3%81%84%e3%81%a3%e3%81%b1%e3%81%84%e3%81%82%e3%81%a3%e3%81%a6%e3%82%8f%e3%81%8b%e3%82%89%e3%81%aa/attachment/python/" data-orig-file="https://i0.wp.com/aboeblog.com/wp-content/uploads/2018/05/python_1527142244.png?fit=1280%2C1278&amp;ssl=1" data-orig-size="1280,1278" 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="Python" data-image-description="" data-medium-file="https://i0.wp.com/aboeblog.com/wp-content/uploads/2018/05/python_1527142244.png?fit=300%2C300&amp;ssl=1" data-large-file="https://i0.wp.com/aboeblog.com/wp-content/uploads/2018/05/python_1527142244.png?fit=1024%2C1022&amp;ssl=1" /></figure><div class="blogcard-content internal-blogcard-content"><div class="blogcard-title internal-blogcard-title">初心者のためのPython入門 #1 -Pythonの基本の使い方編-</div><div class="blogcard-snippet internal-blogcard-snippet">前回はpythonの環境を構築して、pythonを動かせるようにしました。今回は、Pythonの基本的な使い方を勉強していきましょう。算数でいうところの数字と四則演算です。今回の内容0.準...</div></div><div class="blogcard-footer internal-blogcard-footer cf"><div class="blogcard-site internal-blogcard-site"><div class="blogcard-favicon internal-blogcard-favicon"><img src="https://www.google.com/s2/favicons?domain=aboeblog.com" alt="" class="blogcard-favicon-image internal-blogcard-favicon-image" width="16" height="16" /></div><div class="blogcard-domain internal-blogcard-domain">aboeblog.com</div></div><div class="blogcard-date internal-blogcard-date"><div class="blogcard-post-date internal-blogcard-post-date">2020.10.21</div></div></div></div></a>
</div>
<p>&nbsp;</p>
]]></content:encoded>
					
					<wfw:commentRss>https://aboeblog.com/program/python/%e5%88%9d%e5%bf%83%e8%80%85%e3%81%ae%e3%81%9f%e3%82%81%e3%81%aepython%e5%85%a5%e9%96%80-0-python%e3%81%ae%e3%81%af%e3%81%98%e3%82%81%e3%81%8b%e3%81%9fwindows/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">989</post-id>	</item>
		<item>
		<title>プログラミング言語っていっぱいあってわからない…泣どうやって選んだらいいの[種類から選ぶ]?</title>
		<link>https://aboeblog.com/program/%e3%83%97%e3%83%ad%e3%82%b0%e3%83%a9%e3%83%9f%e3%83%b3%e3%82%b0%e8%a8%80%e8%aa%9e%e3%81%a3%e3%81%a6%e3%81%84%e3%81%a3%e3%81%b1%e3%81%84%e3%81%82%e3%81%a3%e3%81%a6%e3%82%8f%e3%81%8b%e3%82%89%e3%81%aa/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=%25e3%2583%2597%25e3%2583%25ad%25e3%2582%25b0%25e3%2583%25a9%25e3%2583%259f%25e3%2583%25b3%25e3%2582%25b0%25e8%25a8%2580%25e8%25aa%259e%25e3%2581%25a3%25e3%2581%25a6%25e3%2581%2584%25e3%2581%25a3%25e3%2581%25b1%25e3%2581%2584%25e3%2581%2582%25e3%2581%25a3%25e3%2581%25a6%25e3%2582%258f%25e3%2581%258b%25e3%2582%2589%25e3%2581%25aa</link>
					<comments>https://aboeblog.com/program/%e3%83%97%e3%83%ad%e3%82%b0%e3%83%a9%e3%83%9f%e3%83%b3%e3%82%b0%e8%a8%80%e8%aa%9e%e3%81%a3%e3%81%a6%e3%81%84%e3%81%a3%e3%81%b1%e3%81%84%e3%81%82%e3%81%a3%e3%81%a6%e3%82%8f%e3%81%8b%e3%82%89%e3%81%aa/#respond</comments>
		
		<dc:creator><![CDATA[aboeuser]]></dc:creator>
		<pubDate>Tue, 13 Oct 2020 13:47:39 +0000</pubDate>
				<category><![CDATA[プログラミング]]></category>
		<category><![CDATA[独学のプログラミング]]></category>
		<guid isPermaLink="false">https://aboeblog.com/?p=979</guid>

					<description><![CDATA[こんにちは、 今日は、プログラミングを勉強してみたいけど、 種類がいっぱいあって何を選んだらいいかわからない方のために、 メジャーなプログラミング言語の解説をします。 勉強の前にプログラミングを勉強する目的はっきりしてま [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>こんにちは、</p>
<p>今日は、プログラミングを勉強してみたいけど、</p>
<p>種類がいっぱいあって何を選んだらいいかわからない方のために、</p>
<p>メジャーなプログラミング言語の解説をします。</p>
<p>勉強の前に<a href="https://aboeblog.com/2020/10/12/%e5%88%9d%e5%bf%83%e8%80%85%e3%83%bb%e6%9c%aa%e7%b5%8c%e9%a8%93%e8%80%85%e3%81%8c%e3%83%97%e3%83%ad%e3%82%b0%e3%83%a9%e3%83%9f%e3%83%b3%e3%82%b0%e5%8b%89%e5%bc%b7%e3%81%a7%e6%88%90%e5%8a%9f%e3%81%99/" target="_blank">プログラミングを勉強する目的はっきりしてますか?</a></p>
<p>&nbsp;</p>
<p>それでは行きましょう!</p>
<h1>プログラミング言語の種類</h1>
<p>プログラミング言語は、目的別に大きく分けて、3種類に分けれます。</p>
<ol>
<li><span style="font-size: 20px;"><strong>IoTなどの組み込み系(空気清浄機、スマート冷蔵庫、車&#8230;いっぱいあります)</strong></span></li>
<li><span style="font-size: 20px;"><strong>Webアプリケーション(例 Amazonとか)</strong></span></li>
<li><span style="font-size: 20px;"><strong>研究用・業務効率化<span style="font-size: 12px;">(人工知能、機械学習とか今流行りのやつです)</span></strong></span></li>
</ol>
<p>※プログラミング言語1種類で、複数種類対応しているものも多くあります。</p>
<p>※各プログラミング言語の性格でで向き不向きがあります。</p>

  <div id="toc" class="toc tnt-number toc-center border-element"><input type="checkbox" class="toc-checkbox" id="toc-checkbox-6" checked><label class="toc-title" for="toc-checkbox-6">目次</label>
    <div class="toc-content">
    <ol class="toc-list open"></li><li><a href="#toc1" tabindex="0">1.IoTなどの組み込み系</a><ol><li><a href="#toc2" tabindex="0">IoT・組み込み系のプログラミング言語</a></li></ol></li><li><a href="#toc3" tabindex="0">Webアプリケーション</a><ol><li><a href="#toc4" tabindex="0">Webアプリケーションのプログラミング言語</a><ol><li><a href="#toc5" tabindex="0">一番始めやすい言語は?</a></li></ol></li><li><a href="#toc6" tabindex="0">Webアプリケーションでは</a></li></ol></li><li><a href="#toc7" tabindex="0">研究用・業務効率化</a></li></ol>
    </div>
  </div>

<h2><span id="toc1">1.IoTなどの組み込み系</span></h2>
<div id="attachment_251" style="width: 310px" class="wp-caption alignnone"><img aria-describedby="caption-attachment-251" data-attachment-id="251" data-permalink="https://aboeblog.com/%e5%8b%89%e5%bc%b7/%e8%ab%96%e7%90%86%e5%9b%9e%e8%b7%af%e3%82%92%e3%82%8f%e3%81%8b%e3%82%8a%e3%82%84%e3%81%99%e3%81%8f%e3%81%be%e3%81%a8%e3%82%81%e3%81%a6%e3%81%bf%e3%81%9f/attachment/silicon/" data-orig-file="https://i1.wp.com/aboeblog.com/wp-content/uploads/2018/01/silicon_1515297764.jpg?fit=1280%2C851&amp;ssl=1" data-orig-size="1280,851" 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="Silicon" data-image-description="" data-medium-file="https://i1.wp.com/aboeblog.com/wp-content/uploads/2018/01/silicon_1515297764.jpg?fit=300%2C199&amp;ssl=1" data-large-file="https://i1.wp.com/aboeblog.com/wp-content/uploads/2018/01/silicon_1515297764.jpg?fit=1024%2C681&amp;ssl=1" loading="lazy" class="size-medium wp-image-251" src="https://i1.wp.com/aboeblog.com/wp-content/uploads/2018/01/silicon_1515297764.jpg?resize=300%2C199&#038;ssl=1" alt="" width="300" height="199" srcset="https://i1.wp.com/aboeblog.com/wp-content/uploads/2018/01/silicon_1515297764.jpg?resize=300%2C199&amp;ssl=1 300w, https://i1.wp.com/aboeblog.com/wp-content/uploads/2018/01/silicon_1515297764.jpg?resize=768%2C511&amp;ssl=1 768w, https://i1.wp.com/aboeblog.com/wp-content/uploads/2018/01/silicon_1515297764.jpg?resize=1024%2C681&amp;ssl=1 1024w, https://i1.wp.com/aboeblog.com/wp-content/uploads/2018/01/silicon_1515297764.jpg?w=1280&amp;ssl=1 1280w" sizes="(max-width: 300px) 100vw, 300px" data-recalc-dims="1" /><p id="caption-attachment-251" class="wp-caption-text"><a rel="follow noopener" target="_blank" href="https://pixabay.com/users/zathris/">zathris</a> / Pixabay</p></div>
<p>IoTは、Internet of Things　モノのインターネット の意味です。</p>
<p>モノをインターネットにつないで便利にしようぜ、っていうのがIoTです。(ざっくり)</p>
<p>最近の例でいえば、外出中でもエアコンをつけれたり、家の中にカメラを設置して、ワンちゃん猫ちゃんの様子を見たり、っていうやつですね。</p>
<p>組み込み系というのは、PCじゃなくて、ちっちゃいコンピュータを機械につけて、機械を思い通りに動かすというイメージです。車とか、飛行機とか、組み込み系ですね。(制御系とも言ったりします。)</p>
<h3><span id="toc2">IoT・組み込み系のプログラミング言語</span></h3>
<p>IoT・組み込み系のプログラミング言語は主に、</p>
<ul>
<li>C言語</li>
<li>C++</li>
<li>C#</li>
<li>Java</li>
<li>アセンブラ(コンピュータよりの言語。めっちゃムズイ)</li>
</ul>
<p>です。(プラスでマイコン・CPUについて理解しないといけません)</p>
<p><span style="font-size: 14px;">※上で挙げた言語の内1つでも使えたら、全然IoT・組み込み系の開発できます。全部できるようになる必要はないです。</span></p>
<p>共通して言えるのが、全部非常に難しいです。</p>
<p>それでも、IoT・組み込み系のプログラミングができるようになりたいって方は、</p>
<p><span style="font-size: 24px;"><strong>C言語から始めるのがお勧めです。</strong></span></p>
<p>(C++はC言語の発展版みたいなものだと思ってください)</p>
<p>独学では、非常に難易度が高いのでプログラミングスクールを受講するのが最善かと思います。</p>
<p>&nbsp;</p>
<h2><span id="toc3">Webアプリケーション</span></h2>
<p><img data-attachment-id="947" data-permalink="https://aboeblog.com/program/%e3%83%97%e3%83%ad%e3%82%b0%e3%83%a9%e3%83%9f%e3%83%b3%e3%82%b0%e8%a8%80%e8%aa%9e%e3%81%a3%e3%81%a6%e3%81%84%e3%81%a3%e3%81%b1%e3%81%84%e3%81%82%e3%81%a3%e3%81%a6%e3%82%8f%e3%81%8b%e3%82%89%e3%81%aa/attachment/spotify-4/" data-orig-file="https://i2.wp.com/aboeblog.com/wp-content/uploads/2020/09/spotify_1601470797.png?fit=1280%2C720&amp;ssl=1" data-orig-size="1280,720" 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="Spotify" data-image-description="" data-medium-file="https://i2.wp.com/aboeblog.com/wp-content/uploads/2020/09/spotify_1601470797.png?fit=300%2C169&amp;ssl=1" data-large-file="https://i2.wp.com/aboeblog.com/wp-content/uploads/2020/09/spotify_1601470797.png?fit=1024%2C576&amp;ssl=1" loading="lazy" class="alignnone size-medium wp-image-947" src="https://i2.wp.com/aboeblog.com/wp-content/uploads/2020/09/spotify_1601470797.png?resize=300%2C169&#038;ssl=1" alt="" width="300" height="169" srcset="https://i2.wp.com/aboeblog.com/wp-content/uploads/2020/09/spotify_1601470797.png?resize=300%2C169&amp;ssl=1 300w, https://i2.wp.com/aboeblog.com/wp-content/uploads/2020/09/spotify_1601470797.png?resize=1024%2C576&amp;ssl=1 1024w, https://i2.wp.com/aboeblog.com/wp-content/uploads/2020/09/spotify_1601470797.png?resize=768%2C432&amp;ssl=1 768w, https://i2.wp.com/aboeblog.com/wp-content/uploads/2020/09/spotify_1601470797.png?w=1280&amp;ssl=1 1280w" sizes="(max-width: 300px) 100vw, 300px" data-recalc-dims="1" /></p>
<p>Webアプリケーションは、Amazon、Youtube、SNSといった</p>
<p>インターネット上でのサービスのイメージです。</p>
<p>※ホームページはWebサイトです。</p>
<h3><span id="toc4">Webアプリケーションのプログラミング言語</span></h3>
<p>Webアプリケーションのプログラミング言語としては、</p>
<ul>
<li>(HTML・CSS)</li>
<li>Javascript</li>
<li>go Lang</li>
<li>C#</li>
<li>Python</li>
<li>php</li>
<li>Ruby</li>
<li>Perl</li>
</ul>
<p>などなど、たくさんあります。</p>
<p>この中で、絶対覚えといて損はない、というか覚えないと始まらないのが</p>
<p>HTML・CSSとJavascriptです。</p>
<p>HTML・CSSは画面の体裁を整えるので、ほとんどの言語で使用します。</p>
<p>Javascriptは、スライドショーを作りたい時に簡単に作れたりと、かゆいところに手が届くので覚えて損はないです(他にも色々な意見あります)</p>
<h4><span id="toc5">一番始めやすい言語は?</span></h4>
<p>一番始めやすい言語としては、phpです。(筆者意見)</p>
<p>C#, go lang, python…何も知らない状態からは、オブジェクト指向とか絡んでくるので難しいです。</p>
<p>Ruby, Perl…こちらはphpと同じくらいの難易度ともいえるのですが、始めるお手軽さでいえば、phpに軍配が上がります。</p>
<h3><span id="toc6">Webアプリケーションでは</span></h3>
<p><span style="font-size: 24px;"><strong>HTML・CSS, Javascript, phpから始めるのがお勧めです。</strong></span></p>
<p>独学でも全然何とかなりますが、オンラインスクールなどを受講するほうが、短期間で大きく成長できると思います。</p>
<p>&nbsp;</p>
<h2><span id="toc7">研究用・業務効率化</span></h2>
<div id="attachment_435" style="width: 179px" class="wp-caption alignnone"><img aria-describedby="caption-attachment-435" data-attachment-id="435" data-permalink="https://aboeblog.com/program/%e3%83%97%e3%83%ad%e3%82%b0%e3%83%a9%e3%83%9f%e3%83%b3%e3%82%b0%e8%a8%80%e8%aa%9e%e3%81%a3%e3%81%a6%e3%81%84%e3%81%a3%e3%81%b1%e3%81%84%e3%81%82%e3%81%a3%e3%81%a6%e3%82%8f%e3%81%8b%e3%82%89%e3%81%aa/attachment/python/" data-orig-file="https://i0.wp.com/aboeblog.com/wp-content/uploads/2018/05/python_1527142244.png?fit=1280%2C1278&amp;ssl=1" data-orig-size="1280,1278" 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="Python" data-image-description="" data-medium-file="https://i0.wp.com/aboeblog.com/wp-content/uploads/2018/05/python_1527142244.png?fit=300%2C300&amp;ssl=1" data-large-file="https://i0.wp.com/aboeblog.com/wp-content/uploads/2018/05/python_1527142244.png?fit=1024%2C1022&amp;ssl=1" loading="lazy" class=" wp-image-435" src="https://i0.wp.com/aboeblog.com/wp-content/uploads/2018/05/python_1527142244.png?resize=169%2C169&#038;ssl=1" alt="" width="169" height="169" srcset="https://i0.wp.com/aboeblog.com/wp-content/uploads/2018/05/python_1527142244.png?resize=300%2C300&amp;ssl=1 300w, https://i0.wp.com/aboeblog.com/wp-content/uploads/2018/05/python_1527142244.png?resize=150%2C150&amp;ssl=1 150w, https://i0.wp.com/aboeblog.com/wp-content/uploads/2018/05/python_1527142244.png?resize=768%2C767&amp;ssl=1 768w, https://i0.wp.com/aboeblog.com/wp-content/uploads/2018/05/python_1527142244.png?resize=1024%2C1022&amp;ssl=1 1024w, https://i0.wp.com/aboeblog.com/wp-content/uploads/2018/05/python_1527142244.png?resize=100%2C100&amp;ssl=1 100w, https://i0.wp.com/aboeblog.com/wp-content/uploads/2018/05/python_1527142244.png?w=1280&amp;ssl=1 1280w" sizes="(max-width: 169px) 100vw, 169px" data-recalc-dims="1" /><p id="caption-attachment-435" class="wp-caption-text"><a rel="follow noopener" target="_blank" href="https://pixabay.com/users/OpenClipart-Vectors/">OpenClipart-Vectors</a> / Pixabay</p></div>
<p>研究用とありますが、今はやりの機械学習、AI、画像認識のための言語</p>
<p>エクセルなどの自動化が楽になる言語としては</p>
<p><span style="font-size: 24px;"><strong>Pythonがお勧めです</strong></span>。(※Java, C++でもできます)</p>
<p>なぜ、Pythonがお勧めかといいますと、</p>
<p>&#8220;ライブラリ&#8221;といって、画像認識に必要なプログラムなどが既に用意されていたり*、</p>
<p>文字列や、配列の操作が非常に楽だからです。</p>
<p>&nbsp;</p>
<h1>まとめ</h1>
<p><span style="background-color: #ccffff;">IoT・組み込み系がやりたいならC言語</span></p>
<p><span style="background-color: #ccffff;">Webアプリケーションを始めたいならHTML・CSS,  Javascript,  php</span></p>
<p><span style="background-color: #ccffff;">研究・業務効率化をしたいならPython</span></p>
<p>です。</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>独学でプログラミングを勉強する自信がないという方はオンラインスクールがお勧めです。</p>
<p><a rel="follow noopener" target="_blank" href="https://px.a8.net/svt/ejp?a8mat=3BOF1W+9IXP82+3L4M+5YZ77">世界最大級のオンライン学習プラットフォーム Udemy</a></p>
<p>初期投資がかかりますが、独学よりも、早いペースで学ぶことが出来ます。*<span style="font-size: 12px;">個人差はあります</span></p>
<p>&nbsp;</p>
<p>これからプログラミング頑張っていきましょう。</p>
]]></content:encoded>
					
					<wfw:commentRss>https://aboeblog.com/program/%e3%83%97%e3%83%ad%e3%82%b0%e3%83%a9%e3%83%9f%e3%83%b3%e3%82%b0%e8%a8%80%e8%aa%9e%e3%81%a3%e3%81%a6%e3%81%84%e3%81%a3%e3%81%b1%e3%81%84%e3%81%82%e3%81%a3%e3%81%a6%e3%82%8f%e3%81%8b%e3%82%89%e3%81%aa/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">979</post-id>	</item>
		<item>
		<title>初心者・未経験者がプログラミング勉強で成功する方法(独学)</title>
		<link>https://aboeblog.com/program/%e5%88%9d%e5%bf%83%e8%80%85%e3%83%bb%e6%9c%aa%e7%b5%8c%e9%a8%93%e8%80%85%e3%81%8c%e3%83%97%e3%83%ad%e3%82%b0%e3%83%a9%e3%83%9f%e3%83%b3%e3%82%b0%e5%8b%89%e5%bc%b7%e3%81%a7%e6%88%90%e5%8a%9f%e3%81%99/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=%25e5%2588%259d%25e5%25bf%2583%25e8%2580%2585%25e3%2583%25bb%25e6%259c%25aa%25e7%25b5%258c%25e9%25a8%2593%25e8%2580%2585%25e3%2581%258c%25e3%2583%2597%25e3%2583%25ad%25e3%2582%25b0%25e3%2583%25a9%25e3%2583%259f%25e3%2583%25b3%25e3%2582%25b0%25e5%258b%2589%25e5%25bc%25b7%25e3%2581%25a7%25e6%2588%2590%25e5%258a%259f%25e3%2581%2599</link>
					<comments>https://aboeblog.com/program/%e5%88%9d%e5%bf%83%e8%80%85%e3%83%bb%e6%9c%aa%e7%b5%8c%e9%a8%93%e8%80%85%e3%81%8c%e3%83%97%e3%83%ad%e3%82%b0%e3%83%a9%e3%83%9f%e3%83%b3%e3%82%b0%e5%8b%89%e5%bc%b7%e3%81%a7%e6%88%90%e5%8a%9f%e3%81%99/#respond</comments>
		
		<dc:creator><![CDATA[aboeuser]]></dc:creator>
		<pubDate>Mon, 12 Oct 2020 12:19:28 +0000</pubDate>
				<category><![CDATA[プログラミング]]></category>
		<category><![CDATA[独学のプログラミング]]></category>
		<guid isPermaLink="false">https://aboeblog.com/?p=973</guid>

					<description><![CDATA[こんにちは、 初心者・未経験者がプログラミング勉強を成功するための方法です。 今回は、本当の本当に、これからプログラミングを始めるぞ! でも、何から手をつければいいのかわからない&#8230;泣 という方を対象としていま [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>こんにちは、</p>
<p>初心者・未経験者がプログラミング勉強を成功するための方法です。</p>
<p>今回は、本当の本当に、これからプログラミングを始めるぞ!</p>
<p>でも、何から手をつければいいのかわからない&#8230;泣</p>
<p>という方を対象としています。</p>
<p>ある程度勉強して挫折しそうだという方はこちら(作成中です。ごめんなさい)</p>

  <div id="toc" class="toc tnt-number toc-center border-element"><input type="checkbox" class="toc-checkbox" id="toc-checkbox-8" checked><label class="toc-title" for="toc-checkbox-8">目次</label>
    <div class="toc-content">
    <ol class="toc-list open"><li><a href="#toc1" tabindex="0">目的をはっきりさせる</a><ol><li><a href="#toc2" tabindex="0">理解しないと</a></li></ol></li><li><a href="#toc3" tabindex="0">目的がはっきりしたら</a></li></ol>
    </div>
  </div>

<h2><span id="toc1">目的をはっきりさせる</span></h2>
<p><img data-attachment-id="974" data-permalink="https://aboeblog.com/program/%e5%88%9d%e5%bf%83%e8%80%85%e3%83%bb%e6%9c%aa%e7%b5%8c%e9%a8%93%e8%80%85%e3%81%8c%e3%83%97%e3%83%ad%e3%82%b0%e3%83%a9%e3%83%9f%e3%83%b3%e3%82%b0%e5%8b%89%e5%bc%b7%e3%81%a7%e6%88%90%e5%8a%9f%e3%81%99/attachment/sick_panic_man/" data-orig-file="https://i2.wp.com/aboeblog.com/wp-content/uploads/2020/10/sick_panic_man-e1602505234630.png?fit=150%2C176&amp;ssl=1" data-orig-size="150,176" 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="sick_panic_man" data-image-description="" data-medium-file="https://i2.wp.com/aboeblog.com/wp-content/uploads/2020/10/sick_panic_man-e1602505234630.png?fit=256%2C300&amp;ssl=1" data-large-file="https://i2.wp.com/aboeblog.com/wp-content/uploads/2020/10/sick_panic_man-e1602505234630.png?fit=150%2C176&amp;ssl=1" loading="lazy" class="alignnone wp-image-974" src="https://i1.wp.com/aboeblog.com/wp-content/uploads/2020/10/sick_panic_man.png?resize=150%2C176&#038;ssl=1" alt="" width="150" height="176" data-recalc-dims="1" /></p>
<p><strong>プログラミングの勉強を始めるうえで、一番大事なことは、</strong></p>
<p><span style="font-size: 24px;"><strong>目的をはっきりさせることです。</strong></span></p>
<p>なぜ、自分はプログラミングがしたいのか&#8230;? プログラミングでいったい何がしたいのか&#8230;?</p>
<p>を明確にして、言葉にできるようにすることです。</p>
<p>一度、自分のプログラミングを勉強して、何がしたいかを具体的に言葉にしてみてください。</p>
<p>例えば、</p>
<ul>
<li>エクセルを自動化したい</li>
<li>A〇EXを作りたい</li>
<li>WEBアプリケーション会社へ転職したい</li>
</ul>
<p>などです。</p>
<p>&nbsp;</p>
<p>具体的に言葉にできましたでしょうか&#8230;?</p>
<p>意外と自分が何をしたいか言葉にするというのは難しいと思います。</p>
<p>言葉にできなかった方、ここで言葉にできなかったからといってプログラミングの勉強をやめる必要はありません。</p>
<p>当サイトで、一緒に目標を立てて、勉強していきましょう。</p>
<p>(０から始めるプログラミングを作成中です。しばし待たれよ)</p>
<p>&nbsp;</p>
<h3><span id="toc2">理解しないと</span></h3>
<p>なぜプログラミングを勉強するのか、その目的を理解しないと、</p>
<p><span style="font-size: 20px;"><strong>8割挫折します。(体感)</strong></span></p>
<p>プログラミングの勉強を始めたらわかるんですが、</p>
<p>ぶっちゃけた話、プログラミングってめんどくさいです。</p>
<p>ボタンを1個表示して、クリックしたら何か表示するっていうことをしようとするだけで、</p>
<p>30行くらいかかないといけません(言語によりますが&#8230;)</p>
<p><img data-attachment-id="975" data-permalink="https://aboeblog.com/program/%e5%88%9d%e5%bf%83%e8%80%85%e3%83%bb%e6%9c%aa%e7%b5%8c%e9%a8%93%e8%80%85%e3%81%8c%e3%83%97%e3%83%ad%e3%82%b0%e3%83%a9%e3%83%9f%e3%83%b3%e3%82%b0%e5%8b%89%e5%bc%b7%e3%81%a7%e6%88%90%e5%8a%9f%e3%81%99/attachment/%e3%83%9c%e3%82%bf%e3%83%b3/" data-orig-file="https://i1.wp.com/aboeblog.com/wp-content/uploads/2020/10/ボタン.png?fit=297%2C142&amp;ssl=1" data-orig-size="297,142" 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="ボタン" data-image-description="" data-medium-file="https://i1.wp.com/aboeblog.com/wp-content/uploads/2020/10/ボタン.png?fit=297%2C142&amp;ssl=1" data-large-file="https://i1.wp.com/aboeblog.com/wp-content/uploads/2020/10/ボタン.png?fit=297%2C142&amp;ssl=1" loading="lazy" class="alignnone wp-image-975" src="https://i1.wp.com/aboeblog.com/wp-content/uploads/2020/10/ボタン.png?resize=190%2C91&#038;ssl=1" alt="" width="190" height="91" data-recalc-dims="1" /></p>
<p>こんな簡単そうなものですら30行です&#8230;</p>
<p>&nbsp;</p>
<p>目的がないとまじで挫折します。</p>
<p>&nbsp;</p>
<h2><span id="toc3">目的がはっきりしたら</span></h2>
<p>目的がはっきりしたら、半分勝ちです（笑）</p>
<p>後は、目的に合ったプログラミング言語を選んで勉強に進みましょう。</p>
<p>プログラミング言語っていっぱいあってわからない&#8230;泣どうやって選んだらいいの?(作成中)</p>
<p>目的別プログラミング言語の選び方(作成中)</p>
<p>Pythonの勉強方法(作成中)</p>
<p>PHPの勉強方法(作成中)</p>
<p>HTML・CSS(3)の勉強方法(作成中)</p>
<p>C言語の勉強方法(作成中)</p>
<p>これからのプログラミング業界がどうなるか(作成中)</p>
<p>作成中ばっかりでごめんなさい&#8230;</p>
<p>随時更新していきます。</p>
<p>&nbsp;</p>
]]></content:encoded>
					
					<wfw:commentRss>https://aboeblog.com/program/%e5%88%9d%e5%bf%83%e8%80%85%e3%83%bb%e6%9c%aa%e7%b5%8c%e9%a8%93%e8%80%85%e3%81%8c%e3%83%97%e3%83%ad%e3%82%b0%e3%83%a9%e3%83%9f%e3%83%b3%e3%82%b0%e5%8b%89%e5%bc%b7%e3%81%a7%e6%88%90%e5%8a%9f%e3%81%99/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">973</post-id>	</item>
		<item>
		<title>[pytorch]重みの保存方法</title>
		<link>https://aboeblog.com/program/python/pytorch/pytorch%e9%87%8d%e3%81%bf%e3%81%ae%e4%bf%9d%e5%ad%98%e6%96%b9%e6%b3%95/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=pytorch%25e9%2587%258d%25e3%2581%25bf%25e3%2581%25ae%25e4%25bf%259d%25e5%25ad%2598%25e6%2596%25b9%25e6%25b3%2595</link>
					<comments>https://aboeblog.com/program/python/pytorch/pytorch%e9%87%8d%e3%81%bf%e3%81%ae%e4%bf%9d%e5%ad%98%e6%96%b9%e6%b3%95/#respond</comments>
		
		<dc:creator><![CDATA[aboeuser]]></dc:creator>
		<pubDate>Tue, 25 Dec 2018 03:01:02 +0000</pubDate>
				<category><![CDATA[pytorch]]></category>
		<guid isPermaLink="false">https://aboeblog.com/?p=846</guid>

					<description><![CDATA[どうもフジワラです。 今日は、pytorchでニューラルネットで学習した重みを保存する方法について書きます。 目次 前提t7ファイルで保存する方法pthファイルで保存する方法 前提 netが学習したネットワークモデルです [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>どうもフジワラです。</p>
<p>今日は、pytorchでニューラルネットで学習した重みを保存する方法について書きます。</p>

  <div id="toc" class="toc tnt-number toc-center border-element"><input type="checkbox" class="toc-checkbox" id="toc-checkbox-10" checked><label class="toc-title" for="toc-checkbox-10">目次</label>
    <div class="toc-content">
    <ol class="toc-list open"><li><a href="#toc1" tabindex="0">前提</a></li><li><a href="#toc2" tabindex="0">t7ファイルで保存する方法</a></li><li><a href="#toc3" tabindex="0">pthファイルで保存する方法</a></li></ol>
    </div>
  </div>

<h2><span id="toc1">前提</span></h2>
<p>netが学習したネットワークモデルです。</p>
<h2><span id="toc2">t7ファイルで保存する方法</span></h2>
<p>t7ファイルで保存する方法は、</p>
<pre class="brush: python; title: ; notranslate">

import torch

state = {
'net': net.state_dict(), #保存するモデルの重み
'acc': acc, #精度
'epoch': epoch, #エポック数
}

torch.save(state, '保存ファイル.t7')

</pre>
<p>とまあ、こういう感じで保存します。</p>
<p>t7ファイルだと、重みだけでなく、精度、エポック数やいろいろ一緒に保存できるところが便利です。</p>
<p>いわばjsonや辞書型です。</p>
<p>&nbsp;</p>
<h2><span id="toc3">pthファイルで保存する方法</span></h2>
<p>pthファイルで保存する方法は、</p>
<pre class="brush: python; title: ; notranslate">

import torch

torch.save(net.state_dict(), &quot;保存ファイル.pth&quot;)

</pre>
<p>で保存します。</p>
<p>&nbsp;</p>
<h1>まとめ</h1>
<p>後ろの.state_dict()をつけないと、gpu番号まで保存されてしまうので、違う環境で実行することがかなりむずくなったりするので、必ず.state_dict()をつけましょう。</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
]]></content:encoded>
					
					<wfw:commentRss>https://aboeblog.com/program/python/pytorch/pytorch%e9%87%8d%e3%81%bf%e3%81%ae%e4%bf%9d%e5%ad%98%e6%96%b9%e6%b3%95/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">846</post-id>	</item>
		<item>
		<title>[pytorch]Error(s) in loading state_dict for DataParallel: 	Missing key(s) in state_dictと出るときの解決法</title>
		<link>https://aboeblog.com/program/python/pytorch/pytorcherrors-in-loading-state_dict-for-dataparallel-missing-keys-in-state_dict%e3%81%a8%e5%87%ba%e3%82%8b%e3%81%a8%e3%81%8d%e3%81%ae%e8%a7%a3%e6%b1%ba%e6%b3%95/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=pytorcherrors-in-loading-state_dict-for-dataparallel-missing-keys-in-state_dict%25e3%2581%25a8%25e5%2587%25ba%25e3%2582%258b%25e3%2581%25a8%25e3%2581%258d%25e3%2581%25ae%25e8%25a7%25a3%25e6%25b1%25ba%25e6%25b3%2595</link>
					<comments>https://aboeblog.com/program/python/pytorch/pytorcherrors-in-loading-state_dict-for-dataparallel-missing-keys-in-state_dict%e3%81%a8%e5%87%ba%e3%82%8b%e3%81%a8%e3%81%8d%e3%81%ae%e8%a7%a3%e6%b1%ba%e6%b3%95/#respond</comments>
		
		<dc:creator><![CDATA[aboeuser]]></dc:creator>
		<pubDate>Tue, 25 Dec 2018 01:53:31 +0000</pubDate>
				<category><![CDATA[pytorch]]></category>
		<guid isPermaLink="false">https://aboeblog.com/?p=835</guid>

					<description><![CDATA[どうもフジワラです。 今日は、pytorchで Error(s) in loading state_dict for DataParallel: Missing key(s) in state_dict とエラーを吐くと [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>どうもフジワラです。</p>
<p>今日は、pytorchで</p>
<div class="blank-box bb-red">Error(s) in loading state_dict for DataParallel:<br />
Missing key(s) in state_dict</div>
<div>とエラーを吐くときの解決法を載せます。</div>
<div></div>

  <div id="toc" class="toc tnt-number toc-center border-element"><input type="checkbox" class="toc-checkbox" id="toc-checkbox-12" checked><label class="toc-title" for="toc-checkbox-12">目次</label>
    <div class="toc-content">
    <ol class="toc-list open"><li><a href="#toc1" tabindex="0">前提</a></li><li><a href="#toc2" tabindex="0">エラーの解決法。</a></li></ol>
    </div>
  </div>

<h2><span id="toc1">前提</span></h2>
<p>まず、前提条件として、t7ファイルやpthファイルで保存するときに、</p>
<div class="blank-box bb-blue">net.state_dict()</div>
<div>の形で保存していることが前提です。</div>
<div>この形にせずに、netのまま保存すると、使用gpu番号とかも一緒に保存されてしまうので、</div>
<div>ロードするときにクッソ使いづらくなります。</div>
<div></div>
<div></div>
<h2><span id="toc2">エラーの解決法。</span></h2>
<p>保存するときに、</p>
<p>「module.」が先頭について保存されている場合は、</p>
<p>先頭のmodule.を消してしまえばいいのです。</p>
<pre class="brush: python; title: ; notranslate">

from collections import OrderedDict

checkpoint=torch.load(&quot;ロードしたいファイル&quot;)

state_dict=checkpoint
new_state_dict=OrderedDict()

for k, v in state_dict.items():
　　name=k[7:]; #これで先頭のmodule.を消す

　　new_state_dict[name]=v

net.load_state_dict(new_state_dict)　#これで新たにつくったorderdictを読み込み


</pre>
<div></div>
<div>こういう感じです。</div>
<div></div>
<div>参考リンクは</div>
<div>https://discuss.pytorch.org/t/solved-keyerror-unexpected-key-module-encoder-embedding-weight-in-state-dict/1686/4</div>
<div></div>
]]></content:encoded>
					
					<wfw:commentRss>https://aboeblog.com/program/python/pytorch/pytorcherrors-in-loading-state_dict-for-dataparallel-missing-keys-in-state_dict%e3%81%a8%e5%87%ba%e3%82%8b%e3%81%a8%e3%81%8d%e3%81%ae%e8%a7%a3%e6%b1%ba%e6%b3%95/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">835</post-id>	</item>
		<item>
		<title>[python]append(), extend()使用時の注意!</title>
		<link>https://aboeblog.com/program/python/pythonappend-extend%e4%bd%bf%e7%94%a8%e6%99%82%e3%81%ae%e6%b3%a8%e6%84%8f/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=pythonappend-extend%25e4%25bd%25bf%25e7%2594%25a8%25e6%2599%2582%25e3%2581%25ae%25e6%25b3%25a8%25e6%2584%258f</link>
					<comments>https://aboeblog.com/program/python/pythonappend-extend%e4%bd%bf%e7%94%a8%e6%99%82%e3%81%ae%e6%b3%a8%e6%84%8f/#respond</comments>
		
		<dc:creator><![CDATA[aboeuser]]></dc:creator>
		<pubDate>Tue, 04 Dec 2018 14:41:58 +0000</pubDate>
				<category><![CDATA[python]]></category>
		<guid isPermaLink="false">https://aboeblog.com/?p=815</guid>

					<description><![CDATA[どうもフジワラです。 今日は、pythonでappend(),extend()を使うときの注意点を書いていきます。 &#160; 目次 append(), extend()とは注意点 append(), extend() [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>どうもフジワラです。</p>
<p>今日は、pythonでappend(),extend()を使うときの注意点を書いていきます。</p>
<p>&nbsp;</p>

  <div id="toc" class="toc tnt-number toc-center border-element"><input type="checkbox" class="toc-checkbox" id="toc-checkbox-14" checked><label class="toc-title" for="toc-checkbox-14">目次</label>
    <div class="toc-content">
    <ol class="toc-list open"><li><a href="#toc1" tabindex="0">append(), extend()とは</a></li><li><a href="#toc2" tabindex="0">注意点</a></li></ol>
    </div>
  </div>

<h2><span id="toc1">append(), extend()とは</span></h2>
<p>まず、append()は、リストの末尾に要素を追加したい時に使います。</p>
<p>&nbsp;</p>
<pre class="brush: python; title: ; notranslate">

a=[1, 2]

a.append(&quot;追加したよ&quot;)

&amp;nbsp;

#a=[1, 2, &quot;追加したよ&quot;]

</pre>
<p>という風になります。</p>
<p>extend()は、リスト同士をくっつける奴です。</p>
<pre class="brush: python; title: ; notranslate">

a=[1, 2, 3]

b=[4, 5, 6]

&amp;nbsp;

a.extend(b)

#a=[1, 2, 3, 4, 5, 6]

</pre>
<p>という風になります。</p>
<p>&nbsp;</p>
<h2><span id="toc2">注意点</span></h2>
<p>append(), extend()とかをクラス内や、関数内で使うときは注意が必要です。</p>
<p>&nbsp;</p>
<pre class="brush: python; title: ; notranslate">

class sample_caution():
def caution(self, arg):
arg.append(&quot;appended&quot;)

arg=[1, 2, 3]

sample_caution=sample_caution()

print(arg) #arg=[1, 2, 3]

sample_caution.caution(arg)

print(arg) #arg=[1, 2, 3, &quot;appended&quot;]

</pre>
<p>という風に、引数に取った元のリストに対して変更を加えてしまいます。</p>
<p>(extendも同様)</p>
<p>&nbsp;</p>
<p>なぜこうなるかというと、C言語とかをやっていた方だとたぶんわかると思います。</p>
<p>(いわゆる、シャローコピー、ディープコピーというやつです。)</p>
<p>これを防ぐには、copyモジュールでdeepcopyをしてやれば解決です。</p>
<pre class="brush: python; title: ; notranslate">
import copy

class sample_caution():
   def caution(self, arg):
      arg=copy.deepcopy(arg)
      arg.append(&quot;appended&quot;)



arg=[1, 2, 3]

sample_caution=sample_caution()

print(arg) #arg=[1, 2, 3]

sample_caution.caution(arg)

print(arg) #arg=[1, 2, 3]

</pre>
<p>&nbsp;</p>
<p>という感じでできます。</p>
<h1>まとめ</h1>
<p>まあ、append、extendに関係なく、クラス、関数を使うときは、コピー元、参照元を意識しないとだるいことになります。</p>
<p>&nbsp;</p>
]]></content:encoded>
					
					<wfw:commentRss>https://aboeblog.com/program/python/pythonappend-extend%e4%bd%bf%e7%94%a8%e6%99%82%e3%81%ae%e6%b3%a8%e6%84%8f/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">815</post-id>	</item>
		<item>
		<title>[pytorch]error : module &#8216;torch&#8217; has no attribute &#8216;empty&#8217;と出た時の対処法</title>
		<link>https://aboeblog.com/program/python/pytorch/pytorcherror-module-torch-has-no-attribute-empty%e3%81%a8%e5%87%ba%e3%81%9f%e6%99%82%e3%81%ae%e5%af%be%e5%87%a6%e6%b3%95/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=pytorcherror-module-torch-has-no-attribute-empty%25e3%2581%25a8%25e5%2587%25ba%25e3%2581%259f%25e6%2599%2582%25e3%2581%25ae%25e5%25af%25be%25e5%2587%25a6%25e6%25b3%2595</link>
					<comments>https://aboeblog.com/program/python/pytorch/pytorcherror-module-torch-has-no-attribute-empty%e3%81%a8%e5%87%ba%e3%81%9f%e6%99%82%e3%81%ae%e5%af%be%e5%87%a6%e6%b3%95/#respond</comments>
		
		<dc:creator><![CDATA[aboeuser]]></dc:creator>
		<pubDate>Fri, 12 Oct 2018 12:01:18 +0000</pubDate>
				<category><![CDATA[pytorch]]></category>
		<guid isPermaLink="false">https://aboeblog.com/?p=745</guid>

					<description><![CDATA[どうもフジワラです。 今日は、pytorchのチュートリアルで x = torch.empty(5, 3) print(x) としたときに、 error : module 'torch' has no attribute [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>どうもフジワラです。</p>
<p>今日は、pytorchのチュートリアルで</p>
<pre><span class="n">x</span> <span class="o">=</span> <span class="n">torch</span><span class="o">.</span><span class="n">empty</span><span class="p">(</span><span class="mi">5</span><span class="p">,</span> <span class="mi">3</span><span class="p">)</span>
<span class="k">print</span><span class="p">(</span><span class="n">x</span><span class="p">)</span></pre>
<p>としたときに、</p>
<pre>error : module 'torch' has no attribute 'empty'</pre>
<p>とエラーを吐いた時の対処法を載せます。</p>
<p>&nbsp;</p>
<h2>結論</h2>
<p>pytorchのバージョンが古いです。</p>
<p>&nbsp;</p>
<a href="https://aboeblog.com/2018/10/12/pytorchwindows%e3%83%90%e3%83%bc%e3%82%b8%e3%83%a7%e3%83%b30-3%e3%81%8b%e3%82%890-4%e3%81%ab%e3%82%a2%e3%83%83%e3%83%97%e3%83%87%e3%83%bc%e3%83%88%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95/" title="[pytorch][windows]バージョン0.3から0.4にアップデートする方法" class="blogcard-wrap internal-blogcard-wrap a-wrap cf"><div class="blogcard internal-blogcard ib-left cf"><div class="blogcard-label internal-blogcard-label"><span class="fa"></span></div><figure class="blogcard-thumbnail internal-blogcard-thumbnail"><img width="160" height="90" src="https://i0.wp.com/aboeblog.com/wp-content/uploads/2018/05/python_1527142244.png?resize=160%2C90&amp;ssl=1" class="blogcard-thumb-image internal-blogcard-thumb-image wp-post-image" alt="" loading="lazy" srcset="https://i0.wp.com/aboeblog.com/wp-content/uploads/2018/05/python_1527142244.png?resize=120%2C67&amp;ssl=1 120w, https://i0.wp.com/aboeblog.com/wp-content/uploads/2018/05/python_1527142244.png?resize=160%2C90&amp;ssl=1 160w, https://i0.wp.com/aboeblog.com/wp-content/uploads/2018/05/python_1527142244.png?resize=320%2C180&amp;ssl=1 320w, https://i0.wp.com/aboeblog.com/wp-content/uploads/2018/05/python_1527142244.png?resize=374%2C210&amp;ssl=1 374w, https://i0.wp.com/aboeblog.com/wp-content/uploads/2018/05/python_1527142244.png?zoom=3&amp;resize=160%2C90&amp;ssl=1 480w" sizes="(max-width: 160px) 100vw, 160px" data-attachment-id="435" data-permalink="https://aboeblog.com/program/%e3%83%97%e3%83%ad%e3%82%b0%e3%83%a9%e3%83%9f%e3%83%b3%e3%82%b0%e8%a8%80%e8%aa%9e%e3%81%a3%e3%81%a6%e3%81%84%e3%81%a3%e3%81%b1%e3%81%84%e3%81%82%e3%81%a3%e3%81%a6%e3%82%8f%e3%81%8b%e3%82%89%e3%81%aa/attachment/python/" data-orig-file="https://i0.wp.com/aboeblog.com/wp-content/uploads/2018/05/python_1527142244.png?fit=1280%2C1278&amp;ssl=1" data-orig-size="1280,1278" 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="Python" data-image-description="" data-medium-file="https://i0.wp.com/aboeblog.com/wp-content/uploads/2018/05/python_1527142244.png?fit=300%2C300&amp;ssl=1" data-large-file="https://i0.wp.com/aboeblog.com/wp-content/uploads/2018/05/python_1527142244.png?fit=1024%2C1022&amp;ssl=1" /></figure><div class="blogcard-content internal-blogcard-content"><div class="blogcard-title internal-blogcard-title">[pytorch][windows]バージョン0.3から0.4にアップデートする方法</div><div class="blogcard-snippet internal-blogcard-snippet">どうもふじわらです。今日は、pytorchのチュートリアルをやるにあたって、バージョンが0.3だと関数が「なかったので0.4にアップデートした方法を載せます。※以下、自己責任でお願いしますpytorchのバー...</div></div><div class="blogcard-footer internal-blogcard-footer cf"><div class="blogcard-site internal-blogcard-site"><div class="blogcard-favicon internal-blogcard-favicon"><img src="https://www.google.com/s2/favicons?domain=aboeblog.com" alt="" class="blogcard-favicon-image internal-blogcard-favicon-image" width="16" height="16" /></div><div class="blogcard-domain internal-blogcard-domain">aboeblog.com</div></div><div class="blogcard-date internal-blogcard-date"><div class="blogcard-post-date internal-blogcard-post-date">2018.10.12</div></div></div></div></a>
<p>&nbsp;</p>
<p>こちらをみて、pytorchのバージョンをアップデートしてください。</p>
<p>&nbsp;</p>
]]></content:encoded>
					
					<wfw:commentRss>https://aboeblog.com/program/python/pytorch/pytorcherror-module-torch-has-no-attribute-empty%e3%81%a8%e5%87%ba%e3%81%9f%e6%99%82%e3%81%ae%e5%af%be%e5%87%a6%e6%b3%95/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">745</post-id>	</item>
		<item>
		<title>[pytorch][windows]バージョン0.3から0.4にアップデートする方法</title>
		<link>https://aboeblog.com/program/python/pytorch/pytorchwindows%e3%83%90%e3%83%bc%e3%82%b8%e3%83%a7%e3%83%b30-3%e3%81%8b%e3%82%890-4%e3%81%ab%e3%82%a2%e3%83%83%e3%83%97%e3%83%87%e3%83%bc%e3%83%88%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=pytorchwindows%25e3%2583%2590%25e3%2583%25bc%25e3%2582%25b8%25e3%2583%25a7%25e3%2583%25b30-3%25e3%2581%258b%25e3%2582%25890-4%25e3%2581%25ab%25e3%2582%25a2%25e3%2583%2583%25e3%2583%2597%25e3%2583%2587%25e3%2583%25bc%25e3%2583%2588%25e3%2581%2599%25e3%2582%258b%25e6%2596%25b9%25e6%25b3%2595</link>
					<comments>https://aboeblog.com/program/python/pytorch/pytorchwindows%e3%83%90%e3%83%bc%e3%82%b8%e3%83%a7%e3%83%b30-3%e3%81%8b%e3%82%890-4%e3%81%ab%e3%82%a2%e3%83%83%e3%83%97%e3%83%87%e3%83%bc%e3%83%88%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95/#respond</comments>
		
		<dc:creator><![CDATA[aboeuser]]></dc:creator>
		<pubDate>Fri, 12 Oct 2018 11:55:54 +0000</pubDate>
				<category><![CDATA[pytorch]]></category>
		<guid isPermaLink="false">https://aboeblog.com/?p=742</guid>

					<description><![CDATA[どうもふじわらです。 今日は、pytorchのチュートリアルをやるにあたって、バージョンが0.3だと関数が「なかったので0.4にアップデートした方法を載せます。 &#160; ※以下、自己責任でお願いします pytorc [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>どうもふじわらです。</p>
<p>今日は、pytorchのチュートリアルをやるにあたって、バージョンが0.3だと関数が「なかったので0.4にアップデートした方法を載せます。</p>
<p>&nbsp;</p>
<p><span class="marker-red" style="font-size: 36px;">※以下、自己責任でお願いします</span></p>
<p>pytorchのバージョン確認は</p>
<pre>print(torch.__version__)</pre>
<p>で出せます。もちろんimport torchしてからやってください（笑）</p>
<p>&nbsp;</p>

  <div id="toc" class="toc tnt-number toc-center border-element"><input type="checkbox" class="toc-checkbox" id="toc-checkbox-18" checked><label class="toc-title" for="toc-checkbox-18">目次</label>
    <div class="toc-content">
    <ol class="toc-list open"><li><a href="#toc1" tabindex="0">環境</a></li><li><a href="#toc2" tabindex="0">やり方</a></li></ol>
    </div>
  </div>

<h2><span id="toc1">環境</span></h2>
<p>Anaconda3 (64bit)</p>
<p>windows10</p>
<p>python 3.6</p>
<p>spyder</p>
<p>&nbsp;</p>
<h2><span id="toc2">やり方</span></h2>
<p>すでにpytorch0.3をインストールしている前提で話します。</p>
<p>&nbsp;</p>
<p>まずは、Anaconda Promptを起動して、</p>
<p><img data-attachment-id="743" data-permalink="https://aboeblog.com/program/python/pytorch/pytorchwindows%e3%83%90%e3%83%bc%e3%82%b8%e3%83%a7%e3%83%b30-3%e3%81%8b%e3%82%890-4%e3%81%ab%e3%82%a2%e3%83%83%e3%83%97%e3%83%87%e3%83%bc%e3%83%88%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95/attachment/f/" data-orig-file="https://i1.wp.com/aboeblog.com/wp-content/uploads/2018/10/f.jpg?fit=1920%2C1080&amp;ssl=1" data-orig-size="1920,1080" 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="f" data-image-description="" data-medium-file="https://i1.wp.com/aboeblog.com/wp-content/uploads/2018/10/f.jpg?fit=300%2C169&amp;ssl=1" data-large-file="https://i1.wp.com/aboeblog.com/wp-content/uploads/2018/10/f.jpg?fit=1024%2C576&amp;ssl=1" loading="lazy" class="alignnone size-large wp-image-743" src="https://i1.wp.com/aboeblog.com/wp-content/uploads/2018/10/f.jpg?resize=1024%2C576&#038;ssl=1" alt="" width="1024" height="576" srcset="https://i1.wp.com/aboeblog.com/wp-content/uploads/2018/10/f.jpg?resize=1024%2C576&amp;ssl=1 1024w, https://i1.wp.com/aboeblog.com/wp-content/uploads/2018/10/f.jpg?resize=300%2C169&amp;ssl=1 300w, https://i1.wp.com/aboeblog.com/wp-content/uploads/2018/10/f.jpg?resize=768%2C432&amp;ssl=1 768w, https://i1.wp.com/aboeblog.com/wp-content/uploads/2018/10/f.jpg?resize=120%2C67&amp;ssl=1 120w, https://i1.wp.com/aboeblog.com/wp-content/uploads/2018/10/f.jpg?resize=160%2C90&amp;ssl=1 160w, https://i1.wp.com/aboeblog.com/wp-content/uploads/2018/10/f.jpg?resize=320%2C180&amp;ssl=1 320w, https://i1.wp.com/aboeblog.com/wp-content/uploads/2018/10/f.jpg?resize=374%2C210&amp;ssl=1 374w, https://i1.wp.com/aboeblog.com/wp-content/uploads/2018/10/f.jpg?w=1920&amp;ssl=1 1920w" sizes="(max-width: 1024px) 100vw, 1024px" data-recalc-dims="1" /></p>
<p>&nbsp;</p>
<pre><code class="hljs cs">conda config --<span class="hljs-keyword">add</span> channels soumith</code></pre>
<p>を入力してエンターをおしたら</p>
<pre><code class="hljs sql">conda <span class="hljs-keyword">update</span> pytorch torchvision</code></pre>
<p>を入力してエンターを押して下さい。</p>
<p>これでうまくいかない場合は</p>
<pre><code class="hljs sql">conda <span class="hljs-keyword">update</span> pytorch </code></pre>
<p>でやってみてください。</p>
<p>&nbsp;</p>
<p>もしくは、Anacondaのディレクトリのpkgsに移動して(cd ./pkgsで行けるはずです)</p>
<p>やってみてください。</p>
<p>そうしたら、version 0.4があるから、既存の0.3をアップデートするかい??って出てくると思うので、</p>
<p>yを入力してエンターを押して、ダウンロードとインストールされるのを待ちましょう。</p>
<p>&nbsp;</p>
<p>以上</p>
<p>&nbsp;</p>
]]></content:encoded>
					
					<wfw:commentRss>https://aboeblog.com/program/python/pytorch/pytorchwindows%e3%83%90%e3%83%bc%e3%82%b8%e3%83%a7%e3%83%b30-3%e3%81%8b%e3%82%890-4%e3%81%ab%e3%82%a2%e3%83%83%e3%83%97%e3%83%87%e3%83%bc%e3%83%88%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">742</post-id>	</item>
		<item>
		<title>[Numpy][Python] numpy.arange()とは</title>
		<link>https://aboeblog.com/program/python/numpypython-numpy-arange%e3%81%a8%e3%81%af/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=numpypython-numpy-arange%25e3%2581%25a8%25e3%2581%25af</link>
					<comments>https://aboeblog.com/program/python/numpypython-numpy-arange%e3%81%a8%e3%81%af/#respond</comments>
		
		<dc:creator><![CDATA[aboeuser]]></dc:creator>
		<pubDate>Wed, 10 Oct 2018 10:27:04 +0000</pubDate>
				<category><![CDATA[numpy]]></category>
		<category><![CDATA[python]]></category>
		<guid isPermaLink="false">https://aboeblog.com/?p=731</guid>

					<description><![CDATA[pythonのライブラリのnumpyのnumpy.arange()って何って思って調べました。 &#160; 目次 numpy.arange()は配列の形で等差数列を作成する関数numpy.arange()の解説 num [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>pythonのライブラリのnumpyのnumpy.arange()って何って思って調べました。</p>
<p>&nbsp;</p>

  <div id="toc" class="toc tnt-number toc-center border-element"><input type="checkbox" class="toc-checkbox" id="toc-checkbox-20" checked><label class="toc-title" for="toc-checkbox-20">目次</label>
    <div class="toc-content">
    <ol class="toc-list open"><li><a href="#toc1" tabindex="0">numpy.arange()は配列の形で等差数列を作成する関数</a></li><li><a href="#toc2" tabindex="0">numpy.arange()の解説</a></li></ol>
    </div>
  </div>

<h2><span id="toc1">numpy.arange()は配列の形で等差数列を作成する関数</span></h2>
<pre class="brush: python; title: ; notranslate">

import numpy as np

x=np.arange(1.0,  10.0,   2.0)

print(x)

</pre>
<p>とすると、出力結果は</p>
<pre class="brush: python; title: ; notranslate">

x=[1 3 5 7 9]

</pre>
<p>となります。</p>
<h2><span id="toc2">numpy.arange()の解説</span></h2>
<p>numpy.arnge(初期値、終了値、ステップ、型)という風になっています。</p>
<p>&nbsp;</p>
<p>ステップは、等差数列でいう公差です。</p>
<p>&nbsp;</p>
<p>終了値以外はすべて省略できます。</p>
<p>省略した場合、初期値は、0、ステップは1、型はnone(初期値、終了値で入力したデータの型)になります。</p>
<p>&nbsp;</p>
<p>実行した場合、初期値から、終了値までの範囲で、交差がステップの等差数列の各項の値が配列に入って返ってきます。</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
]]></content:encoded>
					
					<wfw:commentRss>https://aboeblog.com/program/python/numpypython-numpy-arange%e3%81%a8%e3%81%af/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">731</post-id>	</item>
	</channel>
</rss>
