- Python Programming with Raspberry Pi
- Sai Yamanoor Srihari Yamanoor
- 145字
- 2021-07-02 23:48:42
Launching the Python interpreter via the Linux Terminal
It is also possible to use the Python interpreter via the Linux Terminal. Programmers mostly use this to test their code or refer to the Python documentation tool, pydoc. This approach is convenient if the readers plan to use a text editor other than IDLE:
- Launch the Raspberry Pi's command-line terminal from the desktop toolbar.

Launching the command-line terminal
- Type the command,python3 and press Enter. This should launch Python 3.x on the terminal.
- Now, try running the same piece of code discussed in the previous section:
print("I am excited to learn Python with the Raspberry Pi Zero")
This would give the following screenshot as the result:

The result should be similar to that of the previous two sections
The Python interpreter in the Linux Terminal may be closed by typing exit() and pressing the return key
推薦閱讀
- 3D Printing with RepRap Cookbook
- 人工免疫算法改進(jìn)及其應(yīng)用
- 計(jì)算機(jī)原理
- MCSA Windows Server 2016 Certification Guide:Exam 70-741
- 空間傳感器網(wǎng)絡(luò)復(fù)雜區(qū)域智能監(jiān)測(cè)技術(shù)
- 大數(shù)據(jù)平臺(tái)異常檢測(cè)分析系統(tǒng)的若干關(guān)鍵技術(shù)研究
- 單片機(jī)C語言程序設(shè)計(jì)完全自學(xué)手冊(cè)
- Mastering pfSense
- Excel 2010函數(shù)與公式速查手冊(cè)
- 手機(jī)游戲策劃設(shè)計(jì)
- Linux系統(tǒng)下C程序開發(fā)詳解
- 傳感器原理及實(shí)用技術(shù)
- 巧學(xué)活用Linux
- Artificial Intelligence for Robotics
- 新手學(xué)Photoshop CS6數(shù)碼照片處理