1.Python安装
① 最新的版本可以从Python网站免费下载
② Python下载应看清系统和操作系统的位数(比如32位或者64),以获得最佳运行环境。



2.Python语言程序设计步骤
①Python自带的IDLE(GUI Shell),运行 import this 如下
*它的提示符是>>>
*输入exit()并回车,就退出了Python交互模式
*Python交互模式的代码是输入一行,执行一行

②在IDLE运行环境中,使用File->New File菜单命令,可呼出程序编辑器,该编辑器除文本编辑功能外,还包含关键字颜色区分,简单的智能提示,自动缩进等辅助编辑功能。以.py为扩展名


网友评论