适合初学者的 Python IDE Thonny

码农软件 · 软件分类 · Python开发工具 · 2019-11-12 09:13:44

软件介绍

Thonny —— 一个面向初学者的 Python IDE

Thonny 由爱沙尼亚的 Tartu 大学开发,它采用了不同的方法,因为它的调试器是专为学习和教学编程而设计的。

特性

易于上手。Thonny 内置了 Python 3.7,因此只需要一个简单的安装程序,你就可以开始学习编程了(如有必要,您还可以使用单独的 Python安装)。初始的用户界面会删除可能分散初学者注意力的所有功能。

Initial layout

查看变量方便。当写完代码后,可以点击 View → Variables 查看变量,对变量的地址和变量之间的引用一目了然。

Variables table

简易的调试器。只需按 Ctrl + F5 而不是 F5,即可一步一步地运行程序,且不需要打断点。按 F6 进行大步,按 F7 进行一小步。步骤遵循程序结构,而不仅仅是代码行。

Stepping through statements

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.

Visualization of expression evaluation

嵌套调用函数。单步执行函数调用将打开一个带有单独局部变量表和代码指针的新窗口,这能够很好地理解函数调用的工作原理,对于理解递归尤其重要。

Visualization of call frames

高亮显示语法错误。没有闭合的引号和括号是最常见的初学者语法错误。Thonny 的编辑器能让初学者十分容易发现错误。

Visualization of syntax errors

突然显示变量的作用域范围。局部变量和全局变量在视觉上会有所区分。

Local and global names are visually distinguished

用于展示引用地址的“模型”。Variables are initially presented according to simplified model (name → value) but you can switch to more realistic model (name → address/id → value).

Variables table vs values table

自动补全代码。使用者可以在代码补全的帮助下浏览 API。

Code completion

对初学者友好的系统级别 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.

System shell prepared for Python commands

简洁而干净的 pip GUI. Select Tools → Manage packages for even easier installation of 3rd party packages.

System shell prepared for Python commands

本文地址:https://codercto.com/soft/d/18809.html

Web Design in a Nutshell

Web Design in a Nutshell

Jennifer Niederst / O'Reilly Media, Inc. / 2006-02-21 / USD 34.99

Are you still designing web sites like it's 1999? If so, you're in for a surprise. Since the last edition of this book appeared five years ago, there has been a major climate change with regard to web......一起来看看 《Web Design in a Nutshell》 这本书的介绍吧!

Base64 编码/解码
Base64 编码/解码

Base64 编码/解码

Markdown 在线编辑器
Markdown 在线编辑器

Markdown 在线编辑器