轉載自:
http://www.cnblogs.com/rollenholt/archive/2012/05/02/2479833.html
http://python.jobbole.com/81683/