This problem is used in private contest:Python程序设计编程作业(第三次,函数)