麻省理工学院公开课:计算机科学及编程导论课件,习题
6.00: Introduction to Computer Science and Programming
Getting Started: Python and IDLE
Introduction
This recitation will cover how to set up Python and introduce you to IDLE, the Python development environment we will be using throughout this course.
Setting up Python
On Athena / Linux
Python should be set up correctly on the Linux athena machines. Type 'idle' at the command prompt to ensure that everything is working correctly. This should start up the Python development environment IDLE.
On your own machine
If you are working on your own machine, you will probably need to install Python. We will be using the available here. You should download and install version 2.5.4.
Windows:
Windows Installer
Mac OS X:
Download and install: Mac OS X Installer.
Using IDLE
IDLE is the standard Python development environment Its name is an acronym of "Integrated DeveLopment Environment". It works well on both Unix and Windows platforms.
It has a Python shell window, which gives you access to the Python interactive mode. It also has a file editor that lets you create and edit existing Python source files.
During the following discussion of IDLE's features, instead of passively reading along, you should start IDLE and try to replicate the screenshots.
Interactive Python shell

When you start up IDLE, a window with an interactive Python shell will pop up:
You can type Python code directly into this shell, at the '>>>' prompt. Whenever you enter a complete
Getting_Started(1) 62页 1财富值 2_Getting Started 25页 2财富值 Getting_Started(2) 36页 1财富值 Getting_Started_ZH 39页 5财富值 4 Getting Started...
Getting_Started 19页 2财富值 Getting Started 102页 免费 Getting_Started(1) 62页 1财富值 2_Getting Started 25页 2财富值 Getting_Started(2) 36页 1...
Getting_Started Navicat 9.x 中文帮助文档Navicat 9.x 中文帮助文档隐藏>> 目录入门 连接设置 MySQL 常规设置 Oracle 常规设置 Basic 连接常规设置 TNS 连接常规...
Graphical User Interface OLGA 2000 Getting started SCANDPOWER PETROLEUM TECHNOLOGY Kjeller, Norway OLGA 2000 Graphical User Interface – Getting started Page i...
01Getting_started_with_SPSS_英语学习_外语学习_教育专区。Getting started with SPSS Xu Jiajin Beijing Foreign Studies University Key points ? Introducing SP...
Getting_Started_with_DBProxy_互联网_IT/计算机_专业资料。Getting Started with DBProxy 搜狐技术部 - DBA平台组 概述 ? 面临的问题 ? DBProxy介绍 ? DB...
Outline Overview Installing PyQt Hello World in PyQt Widgets Getting Started with PyQt4 David Boddie david@boddie.org.uk 7th February 2009 David Boddie ...
OperaMasks_Studio_Getting_Started_IT/计算机_专业资料。OperaMasks Studio开发入门,很好的入门教程。今日推荐 78份文档 不小心又胖了 胖女人必看...
OperaMasks_Studio_Getting_Started_IT/计算机_专业资料 暂无评价0人阅读0次下载举报文档 OperaMasks_Studio_Getting_Started_IT/计算机_专业资料。OperaMasks 手册...
热门文档