字典

1构造函数

ages = {‘John’:24, ‘Sarah’:28, ‘Mike’:31}

2访问

ages[‘Sarah’]#return 28
原文地址:https://www.cnblogs.com/LWJin/p/6034518.html