Mostly Linux & Python syntax notes and hyperlinks.

Thursday, January 7, 2010

python: setting two things at once, links for getopt, csv.reader,

The code I need to modify uses csv.reader and getopt

and it can set two values at once!
 >>> a,b="c","d"
>>> a
'c'
>>> b
'd'
>>> a,b='f g'.split()
>>> a
'f'
>>> b
'g'

No comments:

Post a Comment