标签: loops for-loop
我正在查看for循环,但不确定其含义。如果有人可以帮助我并将代码翻译成英语,那么我可以更好地学习它,那就太好了。下面是代码:
targets = [1, 2, 3] datalist1 = [1, 2, 3, 3, 3] [i for i in targets if i in datalist1]