python字典中列表追加数据

dict = {}for i in range(1, 6):    if i not in dict:        dict[i] = []    for j in range(101, 106):        dict[i].append(j)print(dict)
相关文章
相关标签/搜索