- Python Programming with Raspberry Pi
- Sai Yamanoor Srihari Yamanoor
- 113字
- 2021-07-02 23:48:42
The text editor approach
The command-line tool is useful for test coding logic, but it is neither practical nor elegant to write code using the interactive tool. It is easier to write a bunch of code at a time and test it. Let's repeat the same example using IDLE's text editor:
- Launch IDLE's text editor (in IDLE, File | New File), enter the hello world line discussed in the previous section and save it as helloworld.py.
- Now, the code could be executed by either pressing the F5 key or clicking on Run Module from the drop-down menu Run, and you will get the output as shown in the following figure:

推薦閱讀
- 現代測控電子技術
- PowerShell 3.0 Advanced Administration Handbook
- 21天學通ASP.NET
- Windows 7寶典
- Moodle Course Design Best Practices
- Docker High Performance(Second Edition)
- 學練一本通:51單片機應用技術
- ASP.NET 2.0 Web開發入門指南
- Cortex-M3嵌入式處理器原理與應用
- Hands-On Business Intelligence with Qlik Sense
- Hadoop Beginner's Guide
- 天才與算法:人腦與AI的數學思維
- 網絡信息安全項目教程
- 菜鳥起飛五筆打字高手
- 軟測之魂