运行此循环时出错您将得到一个整数数组a。通过按以下方式重新排列a的元素来生成新数组b: b = [a[0], a[len(a)-1], a[1], a[len(a)-2, ...] 我的代码只循环了一次,我只是被困在 ...2024-05-16 已阅读: n次