python-elementtree-1.2.6-5
python-numeric-23.7-2.2.2
notify-python-0.1.0-3.fc6
gnome-python2-canvas-2.16.0-1.fc6
gnome-python2-gtkhtml2-2.14.2-6.el5
python-2.4.3-27.el5
libxml2-python-2.6.26-2.1.2.8
audit-libs-python-1.7.13-2.el5
python-sqlite-1.1.7-1.2.1
gamin-python-0.1.7-8.el5
python-ldap-2.2.0-2.1
python-urlgrabber-3.1.0-5.el5
dbus-python-0.70-7.el5
gnome-python2-2.16.0-1.fc6
gnome-python2-gconf-2.16.0-1.fc6
gnome-python2-gnomevfs-2.16.0-1.fc6
gnome-python2-extras-2.14.2-6.el5
libselinux-python-1.33.4-5.5.el5
python-iniparse-0.2.3-4.el5
rpm-python-4.4.2.3-18.el5
gnome-python2-bonobo-2.16.0-1.fc6
[root@localhost python]# python #终端直接运行python
Python 2.4.3 (#1, Jun 11 2009, 14:09:58) #可以看到系统信息
[GCC 4.1.2 20080704 (Red Hat 4.1.2-44)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> print "hello world!" #Python版的HELLO WORLD
hello world! #打印出来Hello world
>>> myString="Hello Python !" #给变量赋值
>>> print myString #打印变量值
Hello Python !
>>> myString #还可以这样写
'Hello Python !'
>>> _ #Python里面_(下划线)的特殊用处
'Hello Python !'
>>>
#!/usr/bin/python2.4
print "Your login name is :",name
print "Doubling your number is :%d" % (int(num)*2)
Enter login name:python #输入用户名
Your login name is : python #打印
Enter a number:1024 #输入一个数字
Doubling your number is :2048 #打印
[root@localhost python]#
#!/usr/bin/python2.4
myString ="hello world!"
[root@localhost python]#
[root@localhost python]# ./print.py #运行程序
Python is number 1!
[root@localhost python]#