dir(str)
today and saw methods that I never knew about.In that vein, here is a short demo of
optparse
(docs). It should give you a good feeling for what's available (of course, there is more):We can exercise it like this:
dir(str)
today and saw methods that I never knew about.optparse
(docs). It should give you a good feeling for what's available (of course, there is more):from optparse import OptionParser |
$ python options.py -f xyz |