我想把一个包含五个坐标的列表中的x值提取出来作为另外的列表,具体该怎么做呢
l=[(1,1),(2,2),(3,3),(4,4),(5,5)] res = [] for t in l: res.append(t[0]) print(res)