how to get help on python console

  • help(argument) where the argument maybe the module, object, class, method name you are intrested, of course you may need first to import it if it is a module or an object that comes with a module.
  • dir(argument) similar with previous help() function, the difference is dir() display short message than help() does. Also, you can do this help(dir) to check out dir() usage.
  • the previous two functions applies to all platforms,now comes another tip which works on unix-like machine: pydoc -k keyword.

And as always, you can google it, if those tricks don’t satisfy you.