写一个Demo:
大致7个部分:
#1.起始行
#2.模块文档
#3.模块导入
#4.声明模块变量
#5.类声明
#6.函数声明
#7.主程序
#!/usr/bin python #1
"Here are module docs" #2
import sys,os #3
point = 20 #4
class Demo(object): #5
"Demo class docs"
pass
def other(): #6
"other function docs"
demo = Demo()
if point>10:
print 'The point is: ',point
other() #7
---[2012-02-25]---
**粗体** _斜体_ [链接](http://example.com) `代码` - 列表 > 引用
。你还可以使用@
来通知其他用户。