learning python ex16-ex24

too tired,so that's all today