2018年6月17日 星期日

Python 編輯器 Thonny.

 Python 編輯器 Thonny. Thonny 是波羅的海三小國之一愛沙尼亞 (Estonia) 的 TARTU 大學計算機科學系所研發的 Python 編輯器, 此軟體輕盈小巧, 非常適合用來開發 Python 應用. 

Fork me on Bitbucket
Download iconDownload version 2.1.17 for
Windows  •  Mac  • 
Linux
For the curious: 2.2 beta

Thonny

Python IDE for beginners
Main screenshot

Features

Easy to get started. Thonny comes with Python 3.6 built in, so just one simple installer is needed and you're ready to learn programming. (You can also use a separate Python installation, if necessary.) The initial user interface is stripped of all features that may distract beginners.
Initial layout
No-hassle variables. Once you're done with hello-worlds, select View → Variables and see how your programs and shell commands affect Python variables.
Variables table
Simple debugger. Just press Ctrl+F5 instead of F5 and you can run your programs step-by-step, no breakpoints needed. Press F6 for a big step and F7 for a small step. Steps follow program structure, not just code lines.
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
Faithful representation of function calls.Stepping into a function call opens a new window with separate local variables table and code pointer. Good understanding of how function calls work is especially important for understanding recursion.
Visualization of call frames
Highlights syntax errors. Unclosed quotes and parentheses are the most common beginners' syntax errors. Thonny's editor makes these easy to spot.
Visualization of syntax errors
Explains scopes. Highlighting variable occurrences reminds you that the same name doesn't always mean the same variable and helps spotting typos. Local variables are visually distinguished from globals.
Local and global names are visually distinguished
Mode for explaining references. 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
Code completion. Students can explore APIs with the help of code completion.
Code completion
Beginner friendly system 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
Simple and clean pip GUI. Select Tools → Manage packages for even easier installation of 3rd party packages.
System shell prepared for Python commands

Demo


Credits


Main development of Thonny takes place in Institute of Computer Science of University of Tartu, Estonia. We are also grateful for the help of several contributors from the open-source community around the world.

Instructions & downloads

Latest stable releases are linked in the download box at the top of this page. Older releses and prereleases can be found at https://bitbucket.org/plas/thonny/downloads/

Plug-ins

Thonny has simple infrastructure for extensions. Please contact us for details!
These are some known Thonny plug-ins:

Contact & News

Papers

沒有留言:

張貼留言

Node-Red & ModeBus FC=1

Node-Red & ModeBus FC=1 write address=0..7   8bits read address=16..23 8bits  [{"id":"cf7c1253d4d997dd","type&q...