for i in range(len(type_list)):
# 通过迭代list创建一个字典
type_temp = {"type_list":type_list[i]};
# 把迭代好的字典添加新字典
temps["type"+str(i)]=type_temp
python字典嵌套使用
最新推荐文章于 2024-04-30 19:51:00 发布
for i in range(len(type_list)):
# 通过迭代list创建一个字典
type_temp = {"type_list":type_list[i]};
# 把迭代好的字典添加新字典
temps["type"+str(i)]=type_temp