Python基础入门:从基础操作到代码复用
1. 环境搭建与基础操作
在学习Python时,我们将使用IPython交互式shell和常规的Bash shell。首先,要为你的平台下载并安装正确版本的IPython,可从 这里 获取。若无法安装IPython,也可使用常规的Python shell。此外,还能下载包含所有所需软件的虚拟机,其中已预配置好可直接运行的IPython。
安装好IPython并打开IPython shell后,其提示符大致如下:
[ngift@Macintosh-7][H:10679][J:0]# ipython
Python 2.5.1 (r251:54863, Jan 17 2008, 19:35:17)
Type "copyright", "credits" or "license" for more information.
IPython 0.8.2 -- An enhanced Interactive Python.
? -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help -> Python's own help system.
object? -> Details about 'object'. ?object also works, ?? prints mo
超级会员免费看
订阅专栏 解锁全文

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



