将列表转换为字典。
key=['laoda','laoer','laosan'] value=['ha','haha','hahaha'] di={} for i in range(len(key)): di[key[i]]=value[i]
--通过键值对形式赋值。
-END
标签:百题,Day12,di,value,key,一题 From: https://www.cnblogs.com/peitongshi/p/16913784.htmlhttps://www.bilibili.com/video/BV1F84y1c7Kf/?spm_id_from=333.788&vd_source=efad7d657bca9605bbc1590a798ed819