>>> list1 = [x**2 for x in range(10)]>>> list1[0, 1, 4, 9, 16, 25, 36, 49, 64, 81] 转载于:https://www.cnblogs.com/GiraffaMPRO/p/6016382.html