Thonny適合初學(xué)者的 Python IDE
Thonny —— 一個(gè)面向初學(xué)者的 Python IDE
Thonny 由愛沙尼亞的 Tartu 大學(xué)開發(fā),它采用了不同的方法,因?yàn)樗恼{(diào)試器是專為學(xué)習(xí)和教學(xué)編程而設(shè)計(jì)的。
特性
| 易于上手。Thonny 內(nèi)置了 Python 3.7,因此只需要一個(gè)簡單的安裝程序,你就可以開始學(xué)習(xí)編程了(如有必要,您還可以使用單獨(dú)的 Python安裝)。初始的用戶界面會(huì)刪除可能分散初學(xué)者注意力的所有功能。 |
|
| 查看變量方便。當(dāng)寫完代碼后,可以點(diǎn)擊 View → Variables 查看變量,對(duì)變量的地址和變量之間的引用一目了然。 |
|
| 簡易的調(diào)試器。只需按 Ctrl + F5 而不是 F5,即可一步一步地運(yùn)行程序,且不需要打斷點(diǎn)。按 F6 進(jìn)行大步,按 F7 進(jìn)行一小步。步驟遵循程序結(jié)構(gòu),而不僅僅是代碼行。 |
|
| Step through expression evaluation.If you use small steps, then you can even see how Python evaluates your expressions. You can think of this light-blue box as a piece of paper where Python replaces subexpressions with their values, piece-by-piece. |
|
| 嵌套調(diào)用函數(shù)。單步執(zhí)行函數(shù)調(diào)用將打開一個(gè)帶有單獨(dú)局部變量表和代碼指針的新窗口,這能夠很好地理解函數(shù)調(diào)用的工作原理,對(duì)于理解遞歸尤其重要。 |
|
| 高亮顯示語法錯(cuò)誤。沒有閉合的引號(hào)和括號(hào)是最常見的初學(xué)者語法錯(cuò)誤。Thonny 的編輯器能讓初學(xué)者十分容易發(fā)現(xiàn)錯(cuò)誤。 |
|
| 突然顯示變量的作用域范圍。局部變量和全局變量在視覺上會(huì)有所區(qū)分。 |
|
| 用于展示引用地址的“模型”。Variables are initially presented according to simplified model (name → value) but you can switch to more realistic model (name → address/id → value). |
|
| 自動(dòng)補(bǔ)全代碼。使用者可以在代碼補(bǔ)全的幫助下瀏覽 API。 |
|
| 對(duì)初學(xué)者友好的系統(tǒng)級(jí)別 shell。 Select Tools → Open system shell to install extra packages or learn handling Python on command line. PATH and conflicts with other Python interpreters are taken care of by Thonny. |
|
| 簡潔而干凈的 pip GUI. Select Tools → Manage packages for even easier installation of 3rd party packages. |
