English-like Python
Abah Joseph
joefazee at gmail.com
Tue Jan 20 14:06:54 EST 2009
Python is English-like enough that everybody including non-programmers can
understand it.e.g
# Import the operating system module
import os
# define new function
def open_dir_tree(path):
for File in os.listdir(path):
file_or_dir = os.path.join(path, File)
# Read the line below, this is almost full english language
if os.path.isdir(file_or_dir) and not os.path.islink(file_or_dir):
open_dir_tree(file_or_dir)
else:
print file_or_dir
open_dir_tree(".")
--
I develop dynamic website with PHP & MySql, Let me know about your site
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20090120/23c64184/attachment.html>
More information about the Python-list
mailing list