在给定代码中,我从data_points列表中提取包含字典的第一列。字典的键包含(x,y)坐标的元组。我从键中提取minX和minY。我该如何压缩代码?
x_list = []
y_list = []
keys = data_points[0].keys()
for i in keys:
x_list.append(i[0])
y_list.append(i[1])
min_value = (min(x_list), min(y_list))