xya = [(0, 0.24),(0.02, 2.18),(0.045, 2.67),(0.085, 3.15)]
怎么实现输出:[0,0.02,0.045,0.085]
通过列表解析就可以得到了
xs = [t[0] for t in xya]