循环 python 将答案附加到列表,然后我想从此创建新列表

Loop in python which appends answers to a list, I want to then create new list from this

这是我的代码中运行良好的部分;

#taking time average
average= sum(result.expect[0])/len(t)
averagelist=[]
averagelist.append([num-Delta, average])
print(averagelist)

提供输出;

[[-50, 0.99994894092412567]]
[[-45, 0.9999371327219414]]
[[-40, 0.99992064521708557]]
[[-35, 0.99989662709502258]]
[[-30, 0.99985966374414359]]
[[-25, 0.99979843838324323]]
[[-20, 0.99968609192147129]]
[[-15, 0.99944283644552467]]
[[-10, 0.99874864586107459]]
[[-5, 0.99499296595818931]]
[[0, 0.50250021597634276]]

现在我希望能够创建一个新列表 x= -50,-45,-40 等 和新列表 y= 0.999..., 0.999..., 0.999... 等 有没有简单的方法可以做到这一点? (我也尝试过 extend 作为对 append 功能的反对,这给了我相同的初始输出,但有一个方括号而不是两个。)

你可以使用这个:

list_x = [i[0] for i in averagelist]
list_y = [i[1] for i in averagelist]