statements operators functions string methods set methods tuple methods dict methods file methods list methods exceptions exception types comprehensions multidimensionals os lambdas subprocess
Intro to Python

Session 1 Session 2 Session 3 Session 4 Session 5 Session 6 Session 7 Session 8 Session 9




pythonreference.com

search statements, functions, methods, exceptions*

hide categories

file .close() close a file
file .write() write to or append to a file
multiprocessing.Process() simultaneously execute a duplicate process
os.listdir() list entries (files and dirs) in a directory
os.path.exists() determine whether a filename or path exists
os.path.getsize() return size of a file or directory
os.path.isfile(), os.path.isdir() determine whether entry name or path is a dir or a file
os.path.join() join a string directory name to a string filename
os.walk() traverse a directory tree
raise raise an exception
subprocess.call() execute an external process
subprocess.check_output() execute an external process, output is returned as a string
sys.argv: command-line arguments access command line arguments
try/except handle specified exception and run routine