learning example of python problem in http://pe.spiritzhang.com/index.php