list03=[]
for item in list03:
if item % 2==0
lsit03.append(item)
--list推导式
list03 = [item for item in list01 if item % 2 ==0 ]
list推导式 python
猜你喜欢
转载自blog.csdn.net/jtpython666/article/details/120117902
今日推荐
周排行