Programming tricks – Python

The *args and **kwargs is a common idiom to allow arbitrary number of arguments to functions as described in the section more on defining functions in the Python documentation.

Similar to dir() in matlab, walk() can return all file path in a folder.

 

http://stackoverflow.com/questions/1419046/python-normal-arguments-vs-keyword-arguments

Leave a comment