>>> list1 = [x**2 for x in range(10)]
>>> list1[0, 1, 4, 9, 16, 25, 36, 49, 64, 81]
本文共 139 字,大约阅读时间需要 1 分钟。
>>> 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