one line if statement

后端 未结 0 1919
南旧
南旧 2020-12-02 07:42

I have the following code

a = [1, 2, 3, 4, 5, 6]
b = [1, 3, 3, 4, 5, 7]
counter = 0
for x,y in tuple(zip(a, b)):
    if x==y:
        counter += 1


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题