Experience of Python Learning Week 3
Adam
2017年8月3日
Experience of Python Learning
week3
In the beginning , I have learnt the operation of files , it has the following procedure:
- Open the file , get the file handle
- Operate things on files through file handle
3. close the file

And other functions can go to http://www.cnblogs.com/alex3714/articles/5717620.html for more informations. In order to avoid you not closing the file , which may cause out of memory , you can use WITH sentence.
And then the ENCODE and DECODE strings.
And the func:
1.avoid putting repetitive code in the program
2.make the program more extensible
3.make the program easy to maintain

Then I learn the recursion:
1.must have a specific END statement
2.every time when you reach the deeper level of recursion , the problem must be less than the former level , or you’ll cause the program out of STACK.
Last is higher-order function(HOF): 
浙公网安备 33010602011771号