adding values from a csv column and getting the mean. beginner help

Tim Chase python.list at tim.thechases.com
Wed Dec 11 21:20:42 CET 2013


On 2013-12-12 07:03, Chris Angelico wrote:
> Also common, but how do you specify a keyword, then? Say you have a
> command with subcommands:
> 
> $0 foo x y
> Move the foo to (x,y)
> $0 bar x y z
> Go to bar X, order a Y, and Z it [eg 'compress', 'gzip', 'drink']
> 
> How do you show that x/y/z are mandatory args, but foo/bar are
> keywords to be typed exactly? In some formats italicized text can
> make that distinction, but not in pure text.

I prefer {} notation:

  $0 mv [--optional] {x} {y}
  $0 bar [--mutually|--exclusive] {x} {y} {z}

-tkc





More information about the Python-list mailing list