标签: python python-3.x
为什么以下代码在使用列表推导时显示此None列表?
>>> a = [1,2,3,4,5] >>> [print(a[i],end=" ") for i in range(len(a))] 1 2 3 4 5 [None, None, None, None, None]