08 September, 2008

Python dictionary

At få nøglerne ud:
  • >>> a = dict(a=1,b=2,c=3)
  • >>> print a.keys()[0]
  • >>> a

No comments: