我正在构建一个字典(我稍后将其制作成JSON字符串).我这样构造它:
data = {} for smallItem in bigList: data[smallItem] = smallItem
我怎样才能使循环一行?
python dictionary for-loop
dictionary ×1
for-loop ×1
python ×1