• 把相应的键放入熟悉的方括弧,如下实例:
    1. #!/usr/bin/python
    2. tinydict = {'Name': 'Zara', 'Age': 7, 'Class': 'First'}
    3. print "tinydict['Name']: ", tinydict['Name']
    4. print "tinydict['Age']: ", tinydict['Age']