[python3 - Basic] Dict

1. 初始化字典

testDict = dict()

2. 赋值

testDict[key] = value

3. 判断是否存在key

if key in testDict

posted @ 2018-07-15 16:31  break大蜗牛  阅读(184)  评论(0编辑  收藏  举报