- 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:

推薦閱讀
- 大數據技術與應用基礎
- 基于LabWindows/CVI的虛擬儀器設計與應用
- 大數據專業英語
- Spark編程基礎(Scala版)
- 貫通Java Web開發三劍客
- 網絡脆弱性掃描產品原理及應用
- INSTANT VMware vCloud Starter
- Mastering OpenStack(Second Edition)
- 手把手教你學Photoshop CS3
- Linux常用命令簡明手冊
- PostgreSQL 10 High Performance
- 實戰大數據(Hadoop+Spark+Flink):從平臺構建到交互式數據分析(離線/實時)
- 大話數據科學:大數據與機器學習實戰(基于R語言)
- 案例解說單片機C語言開發
- Microsoft Power BI Complete Reference