pythonreference.com
search statements, functions, methods, exceptions*
hide categoriesfile .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 |