How to reduce the nested for Loop complexity to a single loop in python?

后端 未结 0 1910
甜味超标
甜味超标 2020-12-09 15:41
for i in range(0,x):
        for j in range(0,y):
            if (i+j)%2 == 0:

Can anyone suggest how to merge it under one loop because I can\'t th

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