>>> students = { "aaa":11, 'bbb':12, 'ccc':13 }
>>> students
{'aaa': 11, 'bbb': 12, 'ccc': 13}
>>> students['bbb']
12
>>>
>>> students
{'aaa': 11, 'bbb': 12, 'ccc': 13}
>>> students['ccc'] = 33
>>> students
{'aaa': 11, 'bbb': 12, 'ccc': 33}
>>>
沒有留言:
張貼留言