python基础:9.深拷贝存储双字典

# 双层循环

temp = list()

for i in range(1,100):

  item = {}

  itme["a"] = i

  for j in range(1,100):

    item["b"] = j

    temp.append(item)

# 字典的键和值覆盖,导致数据值存储最后一次循环的结果

# TODO

原文地址:https://www.cnblogs.com/meloncodezhang/p/11334045.html