工欲善其事,必先利其器
在上一篇文章里我们介绍了Python学习--环境搭建,这篇文章给大家介绍几个用于编写python的工具(Windows平台)。
IDLE
当我们安装完python后就会有这个编辑器,因为它是python自带的,下来我们看看他如何使用
按下Windows键,输入idle或者python就可以看到这个工具


点击打开它

输入print("hello python!")点击回车,我们就能看到hello python!被输出(先不要管它的语法)。

这里有个提示输入的功能,当我们想输入print时,输入pr然后按下tab键就会有提示

重复上一行代码使用快捷键Alt+p
再想切回下一行代码时使用Alt+n
Sublime Text3
个人觉得sublime text3是一个很不错的编辑工具,大家可去官网下载官网地址,安装也特别简单,一直点下一步就能完成安装。
打开软件后界面如下:

快捷键ctrl+n创建一个新文件,ctrl+s保存文件为test.py
然后输入print("hello python!")

Ctrl+B然后选择python就能看到下方输出hello python!

今天就介绍这两个工具作为学习Python的入门工具,后面再给大家介绍一些高级工具。
我的微信的订阅号:EverydayCoding 欢迎大家的加入!
网友评论