data_list = [] for i in range(10): data = {} data['user'] = i data_list.append(data) print(data_list) #每个字典都 不一样
data = {} for i in range(10): data['user'] = i print(data)