<?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/"
	>

<channel>
	<title>程式自學 &#8211; 龍冥 Blog</title>
	<atom:link href="https://dragongo.co/tag/%e7%a8%8b%e5%bc%8f%e8%87%aa%e5%ad%b8/feed/" rel="self" type="application/rss+xml" />
	<link>https://dragongo.co</link>
	<description>Code &#38; Read</description>
	<lastBuildDate>Thu, 15 Jan 2026 07:37:01 +0000</lastBuildDate>
	<language>zh-TW</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.1.5</generator>

<image>
	<url>https://dragongo.co/wp-content/uploads/2021/05/cropped-cropped-LOGO-2-e1655437907165-32x32.png</url>
	<title>程式自學 &#8211; 龍冥 Blog</title>
	<link>https://dragongo.co</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>免費的Python自學資源</title>
		<link>https://dragongo.co/%e5%85%8d%e8%b2%bb%e7%9a%84python%e8%87%aa%e5%ad%b8%e8%b3%87%e6%ba%90/</link>
		
		<dc:creator><![CDATA[龍冥]]></dc:creator>
		<pubDate>Sat, 26 Jun 2021 03:35:01 +0000</pubDate>
				<category><![CDATA[Python]]></category>
		<category><![CDATA[程式教學]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[程式自學]]></category>
		<category><![CDATA[自學資源]]></category>
		<guid isPermaLink="false">https://dragongo.co/?p=1553</guid>

					<description><![CDATA[我平常學習Python會用這些資源，在此統整外，也提供給你學習的管道OwO]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">我平常學習Python會用這些資源，在此統整外，也提供給你學習的管道OwO</p>



<h2 class="has-text-align-center wp-block-heading" id="A">Google查詢</h2>



<p class="wp-block-paragraph">很多Python的問題我都會透過Google查詢，例如我今天要查Python的printf怎麼用，我就會透過「Python+空格+問題」上google查詢，在google搜尋列裡面兩個關鍵字中間加入一個空格，google就會搜尋資料裡面有這兩個關鍵字的資料優先出來，所以要查Python的printf怎麼用，我就會用「Python printf 教學」的關鍵字下去查。</p>



<p class="wp-block-paragraph">大多數的Python基礎問題都可以透過Google找到，除了一般的教學網站外，切記google是一個非常強大的老師，通常只有你不曉得怎麼在Google上分析出你要的資料，不會是Google沒有這個資料。</p>



<hr class="wp-block-separator"/>



<h2 class="has-text-align-center wp-block-heading" id="B">教學網站</h2>



<h3 class="wp-block-heading"><a href="https://lidemy.com/p/alg101-leetcode" data-type="URL" data-id="https://lidemy.com/p/alg101-leetcode" target="_blank" rel="noreferrer noopener">先別急著寫 leetcode</a></h3>



<p class="wp-block-paragraph">此教學資源很適合給新手，此教材會教以下這幾點</p>



<ol class="wp-block-list"><li>充當人體編譯器，以電腦的思維模式去看程式碼</li><li>在寫程式碼以前，先把解法用白話文或是虛擬碼寫出來</li><li>仔細觀察題目內容以及輸入範圍</li><li>熟悉迴圈、判斷式、函式以及其他程式基礎語法的使用</li><li>實作內建函式增加對語法熟悉度</li><li>練習大量程式基礎題，直到你覺得這些題目超簡單為止</li></ol>



<p class="wp-block-paragraph">很適合給對於有學過程式，但看到題目或問題卻還是常常想不到邏輯的人看</p>



<h3 class="wp-block-heading"><a href="https://mofanpy.com/" target="_blank" data-type="URL" data-id="https://mofanpy.com/" rel="noreferrer noopener">莫煩Python</a></h3>



<p class="wp-block-paragraph">裡面從新手開始教，優點是每章節都很短，需要看的時間不長，但其缺點是偏向新手教學，所以每個例子或是範例其實都較淺、不深入，適合新手、對Python不熟或是想初步了解該模組的人用。</p>



<p class="wp-block-paragraph">另外他的內容範圍很廣，有新手教學、機器學習、數據處理、網頁爬蟲等，一大堆，所以推薦給想要初步了解的人看。</p>



<p class="wp-block-paragraph">從新手教起的（交互式學習）：<a href="https://mofanpy.com/tutorials/python-basic/interactive-python/" target="_blank" rel="noreferrer noopener">https://mofanpy.com/tutorials/python-basic/interactive-python/</a></p>



<p class="wp-block-paragraph">爬蟲網頁：<a href="https://mofanpy.com/tutorials/data-manipulation/scraping/" target="_blank" rel="noreferrer noopener">https://mofanpy.com/tutorials/data-manipulation/scraping/</a></p>



<h3 class="wp-block-heading"><a href="https://rainforest2019.blogspot.com/" target="_blank" data-type="URL" data-id="https://rainforest2019.blogspot.com/" rel="noreferrer noopener">雨林數位學苑</a></h3>



<p class="wp-block-paragraph">此網站通常在寒暑假的時候會釋放免費的網路課程可以報名(有國小、國中)，會由溫教授在google classroom上面做非同步的教學，教學內容很完整、有系統性。</p>



<p class="wp-block-paragraph">裡面有Python、Scratch、Micro.bit的線上免費教學課程，偶爾也會有比賽資訊可報名。</p>



<hr class="wp-block-separator"/>



<h2 class="has-text-align-center wp-block-heading" id="C">題庫網站</h2>



<h3 class="wp-block-heading"><a href="http://khcode.m-school.tw/index.php" target="_blank" data-type="URL" data-id="http://khcode.m-school.tw/index.php" rel="noreferrer noopener">高雄市高中職學生 &#8211; &#8220;飆程式網&#8221;</a>、程式城計畫<strong>&nbsp;&#8211; 數科平台</strong></h3>



<p class="wp-block-paragraph">數科平台的前身就是飆程式網，此網站很適合新手入門，他設計給國中生學習程式，優點是題目有難易度分級，但缺點是網站平台有些漏洞，帳號密碼要記好，因為沒有找回密碼的功能，好像也沒有連絡後台的辦法。</p>



<p class="wp-block-paragraph">除此之外，這網站的有一些題目也會不知道該怎麼解，google無法查到他的正解，我有空會將我在題庫上寫出的參考答案放到網誌上，與大家一起討論。</p>



<h3 class="wp-block-heading"><a href="https://zerojudge.tw/" target="_blank" data-type="URL" data-id="https://zerojudge.tw/" rel="noreferrer noopener">高中生程式解題系統</a></h3>



<p class="wp-block-paragraph">此解題平台是設計給高中職的學生做，但裡面也有些題目適合新手或是國中生做，但壞處是他裡面的題目分級不明確，要一題一題慢慢找，偶爾會遇到題目設計的不夠嚴謹的情況發生，但優點是底下討論區，有的時候會有大神在下面幫忙指引解題的道路。</p>



<p class="wp-block-paragraph">此平台從新手到比賽的題目都有，只要肯花時間在裡面找題目做，也能增強程式功力。</p>



<h3 class="wp-block-heading"><a href="https://leetcode.com/problemset/all/" target="_blank" data-type="URL" data-id="https://leetcode.com/problemset/all/" rel="noreferrer noopener">LeetCode</a></h3>



<p class="wp-block-paragraph">相信有在「刷題」的人一定都知道這個網站，他是一個專業的題庫網站，其優點是題目難易度分級明確，可以在上面訓練不同的演算法，鍛鍊自己的程式邏輯的一個聖地，但是他對英文閱讀需要一定的門檻，裡面是全英文敘述，大部分的題目都會有許多大神在上面分享自己的作法、提示或是想法，是個訓練程式基本功的好地方。</p>



<p class="wp-block-paragraph">不推薦程式新手去寫這邊的題目，因為他的Easy最簡單的題目，其實就有一定的難度，需要對於程式有一定基礎功的人上去做，才不至於太挫折。</p>



<p class="wp-block-paragraph">順帶一題，筆者我本身有上去做過一題，但後來發現題目對我來說太難&#8230;所以我就沒有做那裏的題庫了，他適合資工系的人去玩＞﹏＜，我的強項還是在寫微處理機，因此純粹的演算法我接觸的還是不夠多。</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Scratch遊戲-雙人賽跑(互鎖應用)</title>
		<link>https://dragongo.co/scratch/</link>
		
		<dc:creator><![CDATA[龍冥]]></dc:creator>
		<pubDate>Sat, 19 Jun 2021 15:32:53 +0000</pubDate>
				<category><![CDATA[Scratch]]></category>
		<category><![CDATA[程式教學]]></category>
		<category><![CDATA[互鎖]]></category>
		<category><![CDATA[程式自學]]></category>
		<guid isPermaLink="false">https://dragongo.co/?p=1537</guid>

					<description><![CDATA[遊戲說明 有貓咪跟熊的兩個角色，貓咪是使用左右鍵&#8230;]]></description>
										<content:encoded><![CDATA[
<h2 class="wp-block-heading">遊戲說明</h2>



<p class="wp-block-paragraph">有貓咪跟熊的兩個角色，貓咪是使用左右鍵，熊是使用A和D鍵，屬於兩人PK的遊戲，比看誰交互按下這兩個鍵比較快。<br>先按下A下一個就要按D，在按下A如此交替，又做按鍵互鎖機制，同時按下或是都只按同一個按鍵，角色是不會前進的。</p>



<p class="wp-block-paragraph">這是此遊戲的程式網址：<a href="https://scratch.mit.edu/projects/321382927/editor/" target="_blank" rel="noreferrer noopener">https://scratch.mit.edu/projects/321382927/editor/</a></p>



<iframe src="https://scratch.mit.edu/projects/321382927/embed" allowtransparency="true" width="485" height="402" frameborder="0" scrolling="no" allowfullscreen></iframe>



<h2 class="wp-block-heading">遊戲特色-互鎖機制</h2>



<p class="wp-block-paragraph">在日常生活中隨處都可見到<a href="https://zh.wikipedia.org/wiki/%E4%BA%92%E9%94%81" target="_blank" data-type="URL" data-id="https://zh.wikipedia.org/wiki/%E4%BA%92%E9%94%81" rel="noreferrer noopener">互鎖</a>的應用，像是電動鐵捲門的上下按鈕，若你同時按下時，為了保護馬達不會短路燒掉，會有機械互鎖，將馬達停下，又或是電梯門也有互鎖，當電梯運行時，電梯門是不能打開的，要電梯到達樓層後，門才會啟動。</p>



<h2 class="wp-block-heading">遊戲內部的互鎖機制</h2>



<p class="wp-block-paragraph">不論在貓咪或是熊裡面，都會看到這種結構的程式，除了一般常看到的向左被按下與向右鍵不被案下(向右鍵放開)的條件外，兩個如果都有新增一個左互鎖與右互鎖的變數，有兩種情況。</p>



<ol class="wp-block-list"><li>向左鍵被按下且向右鍵放開->右互鎖設為0(讓第二個如果可以進入)->左互鎖設為1(擋住第一個如果不能進入)</li><li>向右鍵被按下且向左鍵放開->左互鎖設為0(讓第一個如果可以進入)->右互鎖設為0(擋住第二個如果不能進入)</li></ol>



<figure class="wp-block-image size-large is-style-default"><img fetchpriority="high" decoding="async" width="795" height="538" src="https://dragongo.co/wp-content/uploads/2021/06/image-100.png" alt="image 100" class="wp-image-1540" title="Scratch遊戲-雙人賽跑(互鎖應用) 1" srcset="https://dragongo.co/wp-content/uploads/2021/06/image-100.png 795w, https://dragongo.co/wp-content/uploads/2021/06/image-100-300x203.png 300w, https://dragongo.co/wp-content/uploads/2021/06/image-100-768x520.png 768w" sizes="(max-width: 795px) 100vw, 795px" /></figure>



<h2 class="wp-block-heading">遊戲結束條件</h2>



<p class="wp-block-paragraph">兩個角色程式的末段都有遊戲結束的程式，當碰到我在背景畫下紅色終點線時，遊戲便會結束，並廣播是哪個角色碰到終點線，切換成那個角色的獲勝背景。</p>



<figure class="wp-block-image size-large is-resized is-style-default"><img decoding="async" src="https://dragongo.co/wp-content/uploads/2021/06/image-101.png" alt="image 101" class="wp-image-1542" width="363" height="333" title="Scratch遊戲-雙人賽跑(互鎖應用) 2"></figure>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Python 爬蟲維基百科教學</title>
		<link>https://dragongo.co/python-%e7%88%ac%e7%b6%ad%e5%9f%ba%e7%99%be%e7%a7%91%e6%95%99%e5%ad%b8/</link>
		
		<dc:creator><![CDATA[龍冥]]></dc:creator>
		<pubDate>Sat, 19 Jun 2021 02:35:50 +0000</pubDate>
				<category><![CDATA[Python]]></category>
		<category><![CDATA[程式教學]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[visual studio code]]></category>
		<category><![CDATA[程式自學]]></category>
		<category><![CDATA[網路爬蟲]]></category>
		<guid isPermaLink="false">https://dragongo.co/?p=1496</guid>

					<description><![CDATA[]]></description>
										<content:encoded><![CDATA[
<pre><code class="c">// PIC18F25K83 Configuration Bit Settings

// 'C' source line config statements

// CONFIG1L
#pragma config FEXTOSC = HS     // External Oscillator Selection (HS (crystal oscillator) above 8 MHz; PFM set to high power)
#pragma config RSTOSC = EXTOSC  // Reset Oscillator Selection (EXTOSC operating per FEXTOSC bits (device manufacturing default))

// CONFIG1H
#pragma config CLKOUTEN = OFF   // Clock out Enable bit (CLKOUT function is disabled)
#pragma config PR1WAY = ON      // PRLOCKED One-Way Set Enable bit (PRLOCK bit can be cleared and set only once)
#pragma config CSWEN = ON       // Clock Switch Enable bit (Writing to NOSC and NDIV is allowed)
#pragma config FCMEN = ON       // Fail-Safe Clock Monitor Enable bit (Fail-Safe Clock Monitor enabled)

// CONFIG2L
#pragma config MCLRE = EXTMCLR  // MCLR Enable bit (If LVP = 0, MCLR pin is MCLR; If LVP = 1, RE3 pin function is MCLR )
#pragma config PWRTS = PWRT_OFF // Power-up timer selection bits (PWRT is disabled)
#pragma config MVECEN = ON      // Multi-vector enable bit (Multi-vector enabled, Vector table used for interrupts)
#pragma config IVT1WAY = ON     // IVTLOCK bit One-way set enable bit (IVTLOCK bit can be cleared and set only once)
#pragma config LPBOREN = OFF    // Low Power BOR Enable bit (ULPBOR disabled)
#pragma config BOREN = SBORDIS  // Brown-out Reset Enable bits (Brown-out Reset enabled , SBOREN bit is ignored)

// CONFIG2H
#pragma config BORV = VBOR_2P45 // Brown-out Reset Voltage Selection bits (Brown-out Reset Voltage (VBOR) set to 2.45V)
#pragma config ZCD = OFF        // ZCD Disable bit (ZCD disabled. ZCD can be enabled by setting the ZCDSEN bit of ZCDCON)
#pragma config PPS1WAY = ON     // PPSLOCK bit One-Way Set Enable bit (PPSLOCK bit can be cleared and set only once; PPS registers remain locked after one clear/set cycle)
#pragma config STVREN = ON      // Stack Full/Underflow Reset Enable bit (Stack full/underflow will cause Reset)
#pragma config DEBUG = OFF      // Debugger Enable bit (Background debugger disabled)
#pragma config XINST = OFF      // Extended Instruction Set Enable bit (Extended Instruction Set and Indexed Addressing Mode disabled)

// CONFIG3L
#pragma config WDTCPS = WDTCPS_31// WDT Period selection bits (Divider ratio 1:65536; software control of WDTPS)
#pragma config WDTE = OFF       // WDT operating mode (WDT Disabled; SWDTEN is ignored)

// CONFIG3H
#pragma config WDTCWS = WDTCWS_7// WDT Window Select bits (window always open (100%); software control; keyed access not required)
#pragma config WDTCCS = SC      // WDT input clock selector (Software Control)

// CONFIG4L
#pragma config BBSIZE = BBSIZE_512// Boot Block Size selection bits (Boot Block size is 512 words)
#pragma config BBEN = OFF       // Boot Block enable bit (Boot block disabled)
#pragma config SAFEN = OFF      // Storage Area Flash enable bit (SAF disabled)
#pragma config WRTAPP = OFF     // Application Block write protection bit (Application Block not write protected)

// CONFIG4H
#pragma config WRTB = OFF       // Configuration Register Write Protection bit (Configuration registers (300000-30000Bh) not write-protected)
#pragma config WRTC = OFF       // Boot Block Write Protection bit (Boot Block (000000-0007FFh) not write-protected)
#pragma config WRTD = OFF       // Data EEPROM Write Protection bit (Data EEPROM not write-protected)
#pragma config WRTSAF = OFF     // SAF Write protection bit (SAF not Write Protected)
#pragma config LVP = ON         // Low Voltage Programming Enable bit (Low voltage programming enabled. MCLR/VPP pin function is MCLR. MCLRE configuration bit is ignored)
// CONFIG5L
#pragma config CP = OFF         // PFM and Data EEPROM Code Protection bit (PFM and Data EEPROM code protection disabled)

// CONFIG5H

// #pragma config statements should precede project file includes.
// Use project enums instead of #define for ON and OFF.

#include <xc.h>
</xc.h></code></pre>



<p class="wp-block-paragraph"></p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Python pip指令集教學</title>
		<link>https://dragongo.co/%e7%94%9a%e9%ba%bc%e6%98%afpython-pip%ef%bc%8c%e5%8f%af%e4%bb%a5%e5%90%83%e5%97%8e%ef%bc%9f/</link>
		
		<dc:creator><![CDATA[龍冥]]></dc:creator>
		<pubDate>Sat, 05 Jun 2021 09:55:44 +0000</pubDate>
				<category><![CDATA[Python]]></category>
		<category><![CDATA[pip]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[visual studio code]]></category>
		<category><![CDATA[程式自學]]></category>
		<guid isPermaLink="false">https://dragongo.co/?p=1309</guid>

					<description><![CDATA[在地下城尋找python pip，是否搞錯了什麼&#8230;]]></description>
										<content:encoded><![CDATA[
<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow"><p>在地下城尋找python pip，是否搞錯了什麼？有沒有空？可以來拯救嗎？</p><cite>來自在地下城尋找邂逅，是否搞錯了什麼？</cite></blockquote>



<h2 class="wp-block-heading">什麼是pip，可以吃嗎？</h2>



<p class="wp-block-paragraph"><a href="https://zh.wikipedia.org/wiki/Pip_(%E8%BB%9F%E4%BB%B6%E5%8C%85%E7%AE%A1%E7%90%86%E7%B3%BB%E7%B5%B1)" target="_blank" rel="noreferrer noopener">pip</a>是屬於Python底下的一個安裝管理套件工具，其功能主要是在做安裝Python其他的軟體包和模組(例如：BeautifulSoup、request、math&#8230;&#8230;)，所以今天你需要使用這些外掛的軟體模組時，就需要使用到pip安裝或是更新。</p>



<h2 class="wp-block-heading">如何安裝pip？</h2>



<p class="wp-block-paragraph">目前Python3.4版本以上的或Python2.7.9版本以上的Python都自帶pip工具，所以基本上不需要安裝pip可以直接使用。</p>



<p class="wp-block-paragraph">若你執行pip發生：「<a href="https://dragongo.co/%e8%a7%a3%e6%b1%ba%ef%bc%9a%e7%84%a1%e6%b3%95%e8%be%a8%e8%ad%98-pip-%e8%a9%9e%e5%bd%99%e6%98%af%e5%90%a6%e7%82%ba-cmdlet%e3%80%81%e5%87%bd%e6%95%b8%e3%80%81%e6%8c%87%e4%bb%a4%e6%aa%94%e6%88%96/" target="_blank" rel="noreferrer noopener">無法辨識 ‘pip’ 詞彙是否為 Cmdlet、函數、指令檔或可執行程式的名稱。請檢查名稱拼字是否正確，如果包含路徑的話，請確認路徑是否正確，然後再試一次。</a>」錯誤的話，請點級超連結。</p>



<h5 class="wp-block-heading">使用命令題是字元(cmd)指令查詢目前的Python版本：</h5>



<pre class="wp-block-code"><code>python --version</code></pre>



<figure class="wp-block-image size-large is-resized is-style-default"><img decoding="async" src="https://dragongo.co/wp-content/uploads/2021/06/image-11.png" alt="image 11" class="wp-image-1312" width="842" height="214" title="Python pip指令集教學 3" srcset="https://dragongo.co/wp-content/uploads/2021/06/image-11.png 562w, https://dragongo.co/wp-content/uploads/2021/06/image-11-300x76.png 300w" sizes="(max-width: 842px) 100vw, 842px" /></figure>



<div class="wp-block-columns is-layout-flex wp-container-core-columns-is-layout-8f761849 wp-block-columns-is-layout-flex">
<div class="wp-block-column is-layout-flow wp-block-column-is-layout-flow" style="flex-basis:100%">
<div class="wp-block-group"><div class="wp-block-group__inner-container is-layout-flow wp-block-group-is-layout-flow">
<h5 class="wp-block-heading">1、透過<a href="https://pip.pypa.io/en/stable/installing/" target="_blank" data-type="URL" data-id="https://pip.pypa.io/en/stable/installing/" rel="noreferrer noopener">pip官網</a>下載安裝pip</h5>



<pre id="codecell6" class="wp-block-code"><code>curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py</code></pre>



<h5 class="wp-block-heading">2、啟動下載好的pip安裝檔，即可安裝完成。</h5>



<pre id="codecell4" class="wp-block-code"><code>py get-pip.py</code></pre>



<h5 class="wp-block-heading">3、透過檢查pip版本，確認安裝完成</h5>



<pre id="codecell4" class="wp-block-code"><code>py -m pip --version</code></pre>



<hr class="wp-block-separator"/>



<h3 class="wp-block-heading">pip指令包</h3>



<pre class="wp-block-code"><code>Usage:
  pip &lt;command> &#91;options]

Commands:
  install                     Install packages.
  download                    Download packages.
  uninstall                   Uninstall packages.
  freeze                      Output installed packages in requirements format.
  list                        List installed packages.
  show                        Show information about installed packages.
  check                       Verify installed packages have compatible dependencies.
  config                      Manage local and global configuration.
  search                      Search PyPI for packages.
  cache                       Inspect and manage pip's wheel cache.
  wheel                       Build wheels from your requirements.
  hash                        Compute hashes of package archives.
  completion                  A helper command used for command completion.
  debug                       Show information useful for debugging.
  help                        Show help for commands.

General Options:
  -h, --help                  Show help.
  --isolated                  Run pip in an isolated mode, ignoring environment variables and user configuration.
  -v, --verbose               Give more output. Option is additive, and can be used up to 3 times.
  -V, --version               Show version and exit.
  -q, --quiet                 Give less output. Option is additive, and can be used up to 3 times (corresponding to
                              WARNING, ERROR, and CRITICAL logging levels).
  --log &lt;path>                Path to a verbose appending log.
  --no-input                  Disable prompting for input.
  --proxy &lt;proxy>             Specify a proxy in the form &#91;user:passwd@]proxy.server:port.
  --retries &lt;retries>         Maximum number of retries each connection should attempt (default 5 times).
  --timeout &lt;sec>             Set the socket timeout (default 15 seconds).
  --exists-action &lt;action>    Default action when a path already exists: (s)witch, (i)gnore, (w)ipe, (b)ackup,
                              (a)bort.
  --trusted-host &lt;hostname>   Mark this host or host:port pair as trusted, even though it does not have valid or any
                              HTTPS.
  --cert &lt;path>               Path to alternate CA bundle.
  --client-cert &lt;path>        Path to SSL client certificate, a single file containing the private key and the
                              certificate in PEM format.
  --cache-dir &lt;dir>           Store the cache data in &lt;dir>.
  --no-cache-dir              Disable the cache.
  --disable-pip-version-check
                              Don't periodically check PyPI to determine whether a new version of pip is available for
                              download. Implied with --no-index.
  --no-color                  Suppress colored output
  --no-python-version-warning
                              Silence deprecation warnings for upcoming unsupported Pythons.
  --use-feature &lt;feature>     Enable new functionality, that may be backward incompatible.
  --use-deprecated &lt;feature>  Enable deprecated functionality, that will be removed in the future.</code></pre>
</div></div>
</div>
</div>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Python pip錯誤：無法辨識 &#8216;pip&#8217; 詞彙是否為 Cmdlet、函數、指令檔或可執行程式的名稱。請檢查名稱拼字是否正確，如果包含路徑的話，請確認路徑是否正確，然後再試一次。</title>
		<link>https://dragongo.co/%e8%a7%a3%e6%b1%ba%ef%bc%9a%e7%84%a1%e6%b3%95%e8%be%a8%e8%ad%98-pip-%e8%a9%9e%e5%bd%99%e6%98%af%e5%90%a6%e7%82%ba-cmdlet%e3%80%81%e5%87%bd%e6%95%b8%e3%80%81%e6%8c%87%e4%bb%a4%e6%aa%94%e6%88%96/</link>
					<comments>https://dragongo.co/%e8%a7%a3%e6%b1%ba%ef%bc%9a%e7%84%a1%e6%b3%95%e8%be%a8%e8%ad%98-pip-%e8%a9%9e%e5%bd%99%e6%98%af%e5%90%a6%e7%82%ba-cmdlet%e3%80%81%e5%87%bd%e6%95%b8%e3%80%81%e6%8c%87%e4%bb%a4%e6%aa%94%e6%88%96/#comments</comments>
		
		<dc:creator><![CDATA[龍冥]]></dc:creator>
		<pubDate>Fri, 21 May 2021 03:38:18 +0000</pubDate>
				<category><![CDATA[Python]]></category>
		<category><![CDATA[程式教學]]></category>
		<category><![CDATA[pip]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[visual studio code]]></category>
		<category><![CDATA[程式自學]]></category>
		<guid isPermaLink="false">https://dragongo.co/?p=1199</guid>

					<description><![CDATA[第一步：開啟檢視進階系統設定
第二步：選擇環進變數
第三步：從系統變數中選擇PATH變數
第四步：按下新增
第五步：在新的一欄複製上C:\Users\"你的使用者名稱"\AppData\Local\Programs\Python\Python38-32\Scripts
]]></description>
										<content:encoded><![CDATA[
<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow">
<p class="wp-block-paragraph">重要更新：這篇文章所提的解答方案僅限於直接安裝python在電腦上，而沒有搭建anaconda之類虛擬環境的python電腦，若可以的話，建議研究如何安裝Anaconda的Python虛擬環境後在執行VScode，應該就不會有這個問題~</p>
</blockquote>



<p class="wp-block-paragraph">若你在執行powershell、命令提示自元或是visual studio code的終端機使用pip安裝指令遇到下述文字的話，此篇將帶你解決這個問題。</p>



<blockquote class="wp-block-quote is-style-default is-layout-flow wp-block-quote-is-layout-flow">
<p class="wp-block-paragraph">無法辨識 &#8216;pip&#8217; 詞彙是否為 Cmdlet、函數、指令檔或可執行程式的名稱。請檢查名稱拼字是否正確，如果包含路徑的話，請確認路徑是否正確，然後再試一次。</p>
</blockquote>



<figure class="wp-block-image size-large is-style-default"><img loading="lazy" decoding="async" width="1024" height="216" src="https://dragongo.co/wp-content/uploads/2021/05/image-13-1024x216.png" alt="image 13" class="wp-image-1202" title="Python pip錯誤：無法辨識 &#039;pip&#039; 詞彙是否為 Cmdlet、函數、指令檔或可執行程式的名稱。請檢查名稱拼字是否正確，如果包含路徑的話，請確認路徑是否正確，然後再試一次。 4" srcset="https://dragongo.co/wp-content/uploads/2021/05/image-13-1024x216.png 1024w, https://dragongo.co/wp-content/uploads/2021/05/image-13-300x63.png 300w, https://dragongo.co/wp-content/uploads/2021/05/image-13-768x162.png 768w, https://dragongo.co/wp-content/uploads/2021/05/image-13-1536x323.png 1536w, https://dragongo.co/wp-content/uploads/2021/05/image-13-1140x240.png 1140w, https://dragongo.co/wp-content/uploads/2021/05/image-13.png 1919w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<h4 class="wp-block-heading">第一步：開啟檢視進階系統設定</h4>



<figure class="wp-block-image is-style-default"><img loading="lazy" decoding="async" width="1024" height="765" src="https://dragongo.co/wp-content/uploads/2021/05/image-14-1024x765.png" alt="image 14" class="wp-image-1203" title="Python pip錯誤：無法辨識 &#039;pip&#039; 詞彙是否為 Cmdlet、函數、指令檔或可執行程式的名稱。請檢查名稱拼字是否正確，如果包含路徑的話，請確認路徑是否正確，然後再試一次。 5" srcset="https://dragongo.co/wp-content/uploads/2021/05/image-14-1024x765.png 1024w, https://dragongo.co/wp-content/uploads/2021/05/image-14-300x224.png 300w, https://dragongo.co/wp-content/uploads/2021/05/image-14-768x574.png 768w, https://dragongo.co/wp-content/uploads/2021/05/image-14.png 1068w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<h4 class="wp-block-heading">第二步：選擇環進變數</h4>



<figure class="wp-block-image size-large is-style-default"><img loading="lazy" decoding="async" width="612" height="670" src="https://dragongo.co/wp-content/uploads/2021/05/image-15.png" alt="image 15" class="wp-image-1204" title="Python pip錯誤：無法辨識 &#039;pip&#039; 詞彙是否為 Cmdlet、函數、指令檔或可執行程式的名稱。請檢查名稱拼字是否正確，如果包含路徑的話，請確認路徑是否正確，然後再試一次。 6" srcset="https://dragongo.co/wp-content/uploads/2021/05/image-15.png 612w, https://dragongo.co/wp-content/uploads/2021/05/image-15-274x300.png 274w" sizes="(max-width: 612px) 100vw, 612px" /></figure>



<h4 class="wp-block-heading">第三步：從系統變數中選擇PATH變數，並按下編輯，若不小心按到刪除或新增，先將整個視窗取消，重新從第一部操作，避免影響windows系統。</h4>



<figure class="wp-block-image size-large is-style-default"><img loading="lazy" decoding="async" width="792" height="740" src="https://dragongo.co/wp-content/uploads/2021/05/image-17.png" alt="image 17" class="wp-image-1206" title="Python pip錯誤：無法辨識 &#039;pip&#039; 詞彙是否為 Cmdlet、函數、指令檔或可執行程式的名稱。請檢查名稱拼字是否正確，如果包含路徑的話，請確認路徑是否正確，然後再試一次。 7" srcset="https://dragongo.co/wp-content/uploads/2021/05/image-17.png 792w, https://dragongo.co/wp-content/uploads/2021/05/image-17-300x280.png 300w, https://dragongo.co/wp-content/uploads/2021/05/image-17-768x718.png 768w" sizes="(max-width: 792px) 100vw, 792px" /></figure>



<h4 class="wp-block-heading">第四步：按下新增</h4>



<figure class="wp-block-image size-large is-style-default"><img loading="lazy" decoding="async" width="711" height="632" src="https://dragongo.co/wp-content/uploads/2021/05/image-18.png" alt="image 18" class="wp-image-1207" title="Python pip錯誤：無法辨識 &#039;pip&#039; 詞彙是否為 Cmdlet、函數、指令檔或可執行程式的名稱。請檢查名稱拼字是否正確，如果包含路徑的話，請確認路徑是否正確，然後再試一次。 8" srcset="https://dragongo.co/wp-content/uploads/2021/05/image-18.png 711w, https://dragongo.co/wp-content/uploads/2021/05/image-18-300x267.png 300w" sizes="(max-width: 711px) 100vw, 711px" /></figure>



<h4 class="wp-block-heading">第五步：在新的一欄複製上</h4>



<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow">
<p class="wp-block-paragraph">C:\Users\&#8221;你的使用者名稱&#8221;\AppData\Local\Programs\Python\Python38-32\Scripts</p>
</blockquote>



<figure class="wp-block-image size-large is-style-default"><img loading="lazy" decoding="async" width="677" height="632" src="https://dragongo.co/wp-content/uploads/2021/05/image-19.png" alt="image 19" class="wp-image-1208" title="Python pip錯誤：無法辨識 &#039;pip&#039; 詞彙是否為 Cmdlet、函數、指令檔或可執行程式的名稱。請檢查名稱拼字是否正確，如果包含路徑的話，請確認路徑是否正確，然後再試一次。 9" srcset="https://dragongo.co/wp-content/uploads/2021/05/image-19.png 677w, https://dragongo.co/wp-content/uploads/2021/05/image-19-300x280.png 300w" sizes="(max-width: 677px) 100vw, 677px" /></figure>



<div class="wp-block-group"><div class="wp-block-group__inner-container is-layout-flow wp-block-group-is-layout-flow">
<p class="wp-block-paragraph">可以將C:\Users\&#8221;你的使用者名稱&#8221;\AppData\Local\Programs\Python\Python38-32\Scripts複製到檔案總管的目錄，確認是否有pip.exe</p>



<figure class="wp-block-image size-large is-style-default"><img loading="lazy" decoding="async" width="1024" height="576" src="https://dragongo.co/wp-content/uploads/2021/05/螢幕擷取畫面-2021-05-21-111620-1024x576.png" alt="螢幕擷取畫面 2021 05 21 111620" class="wp-image-1210" title="Python pip錯誤：無法辨識 &#039;pip&#039; 詞彙是否為 Cmdlet、函數、指令檔或可執行程式的名稱。請檢查名稱拼字是否正確，如果包含路徑的話，請確認路徑是否正確，然後再試一次。 10" srcset="https://dragongo.co/wp-content/uploads/2021/05/螢幕擷取畫面-2021-05-21-111620-1024x576.png 1024w, https://dragongo.co/wp-content/uploads/2021/05/螢幕擷取畫面-2021-05-21-111620-300x169.png 300w, https://dragongo.co/wp-content/uploads/2021/05/螢幕擷取畫面-2021-05-21-111620-768x432.png 768w, https://dragongo.co/wp-content/uploads/2021/05/螢幕擷取畫面-2021-05-21-111620-1536x864.png 1536w, https://dragongo.co/wp-content/uploads/2021/05/螢幕擷取畫面-2021-05-21-111620-1140x641.png 1140w, https://dragongo.co/wp-content/uploads/2021/05/螢幕擷取畫面-2021-05-21-111620.png 1920w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>
</div></div>



<h4 class="wp-block-heading">第六步：按下確認</h4>


<div class="wp-block-image is-style-default">
<figure class="aligncenter is-resized"><img loading="lazy" decoding="async" src="https://dragongo.co/wp-content/uploads/2021/05/image-21.png" alt="image 21" class="wp-image-1213" width="522" height="491" title="Python pip錯誤：無法辨識 &#039;pip&#039; 詞彙是否為 Cmdlet、函數、指令檔或可執行程式的名稱。請檢查名稱拼字是否正確，如果包含路徑的話，請確認路徑是否正確，然後再試一次。 11" srcset="https://dragongo.co/wp-content/uploads/2021/05/image-21.png 677w, https://dragongo.co/wp-content/uploads/2021/05/image-21-300x282.png 300w" sizes="(max-width: 522px) 100vw, 522px" /></figure>
</div>

<div class="wp-block-image is-style-default">
<figure class="aligncenter size-large is-resized"><img loading="lazy" decoding="async" src="https://dragongo.co/wp-content/uploads/2021/05/image-24.png" alt="image 24" class="wp-image-1216" width="527" height="493" title="Python pip錯誤：無法辨識 &#039;pip&#039; 詞彙是否為 Cmdlet、函數、指令檔或可執行程式的名稱。請檢查名稱拼字是否正確，如果包含路徑的話，請確認路徑是否正確，然後再試一次。 12" srcset="https://dragongo.co/wp-content/uploads/2021/05/image-24.png 792w, https://dragongo.co/wp-content/uploads/2021/05/image-24-300x280.png 300w, https://dragongo.co/wp-content/uploads/2021/05/image-24-768x718.png 768w" sizes="(max-width: 527px) 100vw, 527px" /></figure>
</div>

<div class="wp-block-image is-style-default">
<figure class="aligncenter size-large is-resized"><img loading="lazy" decoding="async" src="https://dragongo.co/wp-content/uploads/2021/05/image-25.png" alt="image 25" class="wp-image-1217" width="550" height="708" title="Python pip錯誤：無法辨識 &#039;pip&#039; 詞彙是否為 Cmdlet、函數、指令檔或可執行程式的名稱。請檢查名稱拼字是否正確，如果包含路徑的話，請確認路徑是否正確，然後再試一次。 13" srcset="https://dragongo.co/wp-content/uploads/2021/05/image-25.png 612w, https://dragongo.co/wp-content/uploads/2021/05/image-25-233x300.png 233w" sizes="(max-width: 550px) 100vw, 550px" /></figure>
</div>


<h4 class="wp-block-heading">第七步：重新開啟命令提示自元(cmd)、Visual Studio Code等軟體，重新輸入指令，即可解決此問題。</h4>
]]></content:encoded>
					
					<wfw:commentRss>https://dragongo.co/%e8%a7%a3%e6%b1%ba%ef%bc%9a%e7%84%a1%e6%b3%95%e8%be%a8%e8%ad%98-pip-%e8%a9%9e%e5%bd%99%e6%98%af%e5%90%a6%e7%82%ba-cmdlet%e3%80%81%e5%87%bd%e6%95%b8%e3%80%81%e6%8c%87%e4%bb%a4%e6%aa%94%e6%88%96/feed/</wfw:commentRss>
			<slash:comments>4</slash:comments>
		
		
			</item>
		<item>
		<title>Microbit DHT11溫溼度感測器模組教學</title>
		<link>https://dragongo.co/microbit-dht11%e6%ba%ab%e6%ba%bc%e5%ba%a6%e6%84%9f%e6%b8%ac%e5%99%a8%e6%a8%a1%e7%b5%84%e6%95%99%e5%ad%b8/</link>
		
		<dc:creator><![CDATA[龍冥]]></dc:creator>
		<pubDate>Sun, 16 May 2021 09:15:34 +0000</pubDate>
				<category><![CDATA[microbit]]></category>
		<category><![CDATA[DHT11溫溼度感測器]]></category>
		<category><![CDATA[程式自學]]></category>
		<guid isPermaLink="false">https://dragongo.co/?p=1082</guid>

					<description><![CDATA[Microbit DHT11溫溼度感測器模組教學]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">使用設備：</p>



<ul class="wp-block-list"><li>Microbit</li><li>DHT11(溫溼度感測模組)</li><li>MbitBot Lite擴充版</li></ul>



<h4 class="wp-block-heading">步驟一</h4>



<p class="wp-block-paragraph">將DH11溫溼度感測模組接在第8隻腳，SIG接在Pin(黃色那排)，VCC接在VM(紅色那排)，GND接在GND(黑色那排)</p>



<div class="wp-block-image"><figure class="aligncenter size-large is-resized"><img loading="lazy" decoding="async" src="https://dragongo.co/wp-content/uploads/2021/05/368030501544-1.jpg" alt="MbitBot Lite" class="wp-image-1083" width="675" height="518" title="Microbit DHT11溫溼度感測器模組教學 14"><figcaption>MbitBot Lite示意圖</figcaption></figure></div>



<div class="wp-block-group"><div class="wp-block-group__inner-container is-layout-flow wp-block-group-is-layout-flow">
<div class="wp-block-columns is-layout-flex wp-container-core-columns-is-layout-8f761849 wp-block-columns-is-layout-flex">
<div class="wp-block-column is-layout-flow wp-block-column-is-layout-flow" style="flex-basis:100%">
<figure class="wp-block-gallery aligncenter columns-2 is-cropped wp-block-gallery-1 is-layout-flex wp-block-gallery-is-layout-flex"><ul class="blocks-gallery-grid"><li class="blocks-gallery-item"><figure><img decoding="async" src="https://dragongo.co/wp-content/uploads/2021/05/PXL_20210516_081421214.jpg" alt="PXL 20210516 081421214" data-id="1084" data-link="https://dragongo.co/?attachment_id=1084" class="wp-image-1084" title="Microbit DHT11溫溼度感測器模組教學 15"></figure></li><li class="blocks-gallery-item"><figure><img decoding="async" src="https://dragongo.co/wp-content/uploads/2021/05/PXL_20210516_081436753.jpg" alt="PXL 20210516 081436753" data-id="1085" data-link="https://dragongo.co/?attachment_id=1085" class="wp-image-1085" title="Microbit DHT11溫溼度感測器模組教學 16"></figure></li></ul></figure>
</div>
</div>
</div></div>



<h4 class="wp-block-heading">步驟二</h4>



<p class="wp-block-paragraph">先新增DHT11的擴充程式，其原始碼GitHub在<a href="https://github.com/alankrantas/pxt-DHT11_DHT22" target="_blank" aria-label=" (opens in a new tab)" rel="noreferrer noopener" class="rank-math-link">pxt-DHT11_DHT22</a></p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="530" src="https://dragongo.co/wp-content/uploads/2021/05/image-7-1024x530.png" alt="image 7" class="wp-image-1087" title="Microbit DHT11溫溼度感測器模組教學 17" srcset="https://dragongo.co/wp-content/uploads/2021/05/image-7-1024x530.png 1024w, https://dragongo.co/wp-content/uploads/2021/05/image-7-300x155.png 300w, https://dragongo.co/wp-content/uploads/2021/05/image-7-768x397.png 768w, https://dragongo.co/wp-content/uploads/2021/05/image-7-1536x794.png 1536w, https://dragongo.co/wp-content/uploads/2021/05/image-7-1140x590.png 1140w, https://dragongo.co/wp-content/uploads/2021/05/image-7-1320x683.png 1320w, https://dragongo.co/wp-content/uploads/2021/05/image-7.png 1918w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="527" src="https://dragongo.co/wp-content/uploads/2021/05/image-9-1024x527.png" alt="image 9" class="wp-image-1089" title="Microbit DHT11溫溼度感測器模組教學 18" srcset="https://dragongo.co/wp-content/uploads/2021/05/image-9-1024x527.png 1024w, https://dragongo.co/wp-content/uploads/2021/05/image-9-300x154.png 300w, https://dragongo.co/wp-content/uploads/2021/05/image-9-768x395.png 768w, https://dragongo.co/wp-content/uploads/2021/05/image-9-1536x790.png 1536w, https://dragongo.co/wp-content/uploads/2021/05/image-9-1140x587.png 1140w, https://dragongo.co/wp-content/uploads/2021/05/image-9-1320x679.png 1320w, https://dragongo.co/wp-content/uploads/2021/05/image-9.png 1920w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<h4 class="wp-block-heading">步驟三</h4>



<p class="wp-block-paragraph">Data pin請選擇你插的那隻腳，目前是插在第8隻腳(P8)</p>



<p class="wp-block-paragraph">pin pull up選擇true</p>



<p class="wp-block-paragraph">Serial output選擇false</p>



<p class="wp-block-paragraph">透過Read temperature讀取DHT11的溫度值</p>



<figure class="wp-block-image size-large is-resized"><img loading="lazy" decoding="async" src="https://dragongo.co/wp-content/uploads/2021/05/image-10-1024x529.png" alt="microbit程式碼" class="wp-image-1091" width="840" height="433" title="Microbit DHT11溫溼度感測器模組教學 19" srcset="https://dragongo.co/wp-content/uploads/2021/05/image-10-1024x529.png 1024w, https://dragongo.co/wp-content/uploads/2021/05/image-10-300x155.png 300w, https://dragongo.co/wp-content/uploads/2021/05/image-10-768x397.png 768w, https://dragongo.co/wp-content/uploads/2021/05/image-10-1536x794.png 1536w, https://dragongo.co/wp-content/uploads/2021/05/image-10-1140x589.png 1140w, https://dragongo.co/wp-content/uploads/2021/05/image-10-1320x682.png 1320w, https://dragongo.co/wp-content/uploads/2021/05/image-10.png 1920w" sizes="(max-width: 840px) 100vw, 840px" /><figcaption>microbit DHT11 程式碼</figcaption></figure>



<h4 class="wp-block-heading">顯示結果</h4>


]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
