Put the script in a folder, run it — it will list the movie files (avi/vob/mkv or others specified by you) in the current folder (and in any sub-directories) View/Download Script http://hostcode.sourceforge.net/view/251
Tag Archives: python
Sorting: more loop operations of maps Suppose, we have the following map: >>> D = {‘a’: 1, ‘b’: 2, ‘c’: 3} >>> D {‘a’: 1, ‘c’: 3, ‘b’: 2} We can create a list of keys of a map, then use a for loop to treat it as a sequence: >>> Ks = D.keys( ) […]
Dictionary in Python is a dat type also known as map. You may be already familiar with them, if using Associative Arrays in PHP or Hash-tables in C++ or Java. You may imagine a dictionary as an array, where instead of numerical indexes (the first element of array is indexed as 0, the second element […]
Previous Article: Beginning Python Prgramming! How to Download, install, compile & run program in Python In this post I’ll point out some details about the Python language. Important concepts to be clarified. Python maintains indention strictly: In python, you should maintain indention strictly! This is necessary to tell python which portion of code is under a […]
In unix/linux, you can make executable shell scripts using Python! You can write your python codes in any file, give it executable permission, Then simply run it by double clicking! The trick is… At the first line of your script, type #! followed by location of your Python interpreter #!/usr/bin/python print ‘Start coding herer’ # […]