python安装

今天上午讲了数据类型,老师带着作了几个小练习,感觉对python突然很着迷,我来学python完全是想混个试听的,感觉喜欢上编程了,或许我在某一天也成为编程牛人,期待…

将今天学的东东,显摆一下。

首先,怎么安装Python.

一个同学帮我安装了LINUX系统后,输入一个'python',就进入了,显示如下:


 Python培训@智普教育$ python

Python 2.5.2 (r252:60911, Jul 22 2009, 15:35:03)
[GCC 4.2.4 (Ubuntu 4.2.4-1ubuntu3)] on linux2
Type “help”, “copyright”, “credits” or “license” for more information.

老师还推荐了使用ipython,怎么安装?
在linux下输入ipython,系统提示 sudo apt-get install <??>
输入 sudo apt-get install ipython 即可安装,安装后的界面


 Python培训@智普教育$ ipython

Python 2.5.2 (r252:60911, Jul 22 2009, 15:35:03)
Type “copyright”, “credits” or “license” for more information.

IPython 0.8.1 – An enhanced Interactive Python.
? -> Introduction to IPython's features.
%magic -> Information about IPython's 'magic' % functions.
help -> Python's own help system.
object? -> Details about 'object'. ?object also works, ?? prints more.

In [1]:

敲几行代码吧


In [7]: a=1

In [8]: a
Out[8]: 1

In [9]: a='hello'

In [10]: a
Out[10]: 'hello'

分享几个快捷键:
ctrl+alt+T 打开终端
ctrl+z 中断
ctrl+d 退出

你可能感兴趣的:(python学习,ipython,python数据类型,python入门,智普教育)