python的例子: http://www.java2s.com/Code/Python/CatalogPython.htm 转载于:https://www.cnblogs.com/infim/archive/2011/04/01/2001874.html