From 0b166e40227f1a28953f64a861d3dfebbca9bae7 Mon Sep 17 00:00:00 2001 From: linguofeng Date: Wed, 5 Dec 2012 18:07:02 +0800 Subject: [PATCH] update --- index.html | 1 + pages/language/python.textile | 24 ++++++++++++++++++------ 2 files changed, 19 insertions(+), 6 deletions(-) diff --git a/index.html b/index.html index 822763f..7a1bb9e 100644 --- a/index.html +++ b/index.html @@ -29,4 +29,5 @@ description: 爱编程,爱音乐,爱Linux {% endif %}--> {% endfor %} +

More...

diff --git a/pages/language/python.textile b/pages/language/python.textile index 1d62cb2..afba00f 100644 --- a/pages/language/python.textile +++ b/pages/language/python.textile @@ -1,7 +1,7 @@ --- layout: default title: Python -description: +description: 面对对象,直译式编程语言。 ---
@@ -16,10 +16,11 @@ Python 2.7.3
+

2.1 python shell

@$ python@ 进入shell模式

-
+
 Python 2.7.3 (default, Aug  1 2012, 05:16:07) 
 [GCC 4.6.3] on linux2
 Type "help", "copyright", "credits" or "license" for more information.
@@ -27,10 +28,21 @@ Type "help", "copyright", "credits" or "license" for more information.
 HelloWorld!
 
-

@$ subl helloworld.py@ 源文件版,保存下面内容,

-
+

2.2 .py

+

@$ subl helloworld.py@ 源文件版,保存下面内容, @Ctrl + B@

+
 #!/usr/bin/python
 # Fileame : helloworld.py
 print 'Hello World!!'
 
-
\ No newline at end of file + +

2.3 idle

+

@$idle-python2.7@ idle版

+

+

@Ctrl + N@ 新建窗口输入

+

+

@Ctrl + S@ 保存成.py源文件

+

+

@F5@ 运行模块

+

+
-- 2.11.4.GIT