This chapter teach us how to setup your python development environment varied platforms.
My os is linux, python 2.7 and gedit are pre-installed and configured, so all i should do is just setup the preferences of gedit.
Python use whitespace indentation to delimit blocks, hence the first preference is whitespace, the following setup is stolen fromthe book:
- Open Preferences select theEditor tab.
- Change Tab width: to 4.
- Select (make sure a check mark is in) Insertspaces instead of tabs.
- Turn on "Automatic indentation" as well.
Next, testing python and gedit.
Open the terminal, after type python, i get the python console, i can code and run it directly here.
Open another terminal, after type gedit, it will open the gui gedit, i can code directly here.
本文指导如何在Linux系统中配置Python开发环境,包括安装并设置文本编辑器gedit,调整编辑器偏好,如设置空格缩进、显示行号等,并通过终端直接运行Python代码进行初步测试。
529

被折叠的 条评论
为什么被折叠?



