1. list.append 已有的值被改变,新值覆盖所有旧值 global x plot_scat_dit = { } plot_scat_list = [] for i in range(numOfNodes): xx = x[i].x yy = x[i].y plot_scat_dit["x"] = xx plot_scat_dit["y"] = yy plot_scat_list.append(plot_scat_dit) print