- 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
推薦閱讀
- Java編程全能詞典
- 大數(shù)據(jù)戰(zhàn)爭:人工智能時代不能不說的事
- 一本書玩轉(zhuǎn)數(shù)據(jù)分析(雙色圖解版)
- 空間傳感器網(wǎng)絡(luò)復(fù)雜區(qū)域智能監(jiān)測技術(shù)
- Maya 2012從入門到精通
- Maya極速引擎:材質(zhì)篇
- RPA(機(jī)器人流程自動化)快速入門:基于Blue Prism
- 21天學(xué)通Java Web開發(fā)
- 運(yùn)動控制系統(tǒng)
- Silverlight 2完美征程
- 中文版AutoCAD 2013高手速成
- 電腦故障排除與維護(hù)終極技巧金典
- 貫通Java Web輕量級應(yīng)用開發(fā)
- 自適應(yīng)學(xué)習(xí):人工智能時代的教育革命
- ARM嵌入式開發(fā)實(shí)例