Recipe 4.10. Adding an Entry to a Dictionary

来源:互联网 发布:牛仔外套品牌推荐知乎 编辑:程序博客网 时间:2024/06/05 00:05
def addword(theIndex, word, pagenumber):    theIndex.setdefault(word, [  ]).append(pagenumber)


原创粉丝点击