mirror of
https://github.com/alankrantas/microbit-micropython-cookbook.git
synced 2026-01-09 05:40:14 +01:00
Update learn-python-on-microbit-zh.md
This commit is contained in:
@@ -67,7 +67,7 @@ while True:
|
||||
|
||||
## REPL 互動介面
|
||||
|
||||
想學 Python,就不可不知 **REPL**(Read-Eval-Print Loop,讀取-求值-輸出循環)。簡單說,這是 Python 直譯器的互動介面,能讓開發者用來做簡單的測試、探索 Python 的功能、讀取程式的回應等等,不管在電腦或開發板上,對程式開發者來說都是很實用的工具。
|
||||
想學 Python,就不可不知 **REPL**(Read-Eval-Print Loop,讀取-求值-輸出循環)。簡單說,這是 Python 直譯器的互動介面,能讓開發者用來做簡單的測試、探索 Python 的功能、讀取程式的回應等等,不管在電腦或開發板上,對程式開發者來說都是很實用的工具。因此後面在講解 Python 入門時,我們會先在 REPL 下來示範。
|
||||
|
||||
在 micro:bit 連線的情況下,點編輯器的 **Open Serial**,然後點按鈕下方右側的「Send CTRL-C for REPL」或直接在鍵盤上按 Ctrl+C。你應該會看到以下畫面:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user