2009年10月8日 星期四

python basic template

The following is python basic template:

#! /usr/bin/env python
import os
import sys

def main(*argv):
        print "hello", argv[0]

if __name__ == "__man__":
        sys.exit(main(*sys.argv))

2 則留言:

lecheel 提到...

why you template have python syntax color ?

Yong-Dian Jian 提到...

Hi, I am Yong-Dian Jian, your friend at 51bwpn. If you see this message, please contact me at ydjian@gmail.com, thanks.