first = [0, 0, 0, 0]
second = [0, 0, 0, 0]
third = [0, 0, 0, 0]
fourth = [0, 0, 0, 0]
while 0 in first and 0 in second and 0 in third and 0 in fourth:
顶部的列表以每个值保持为0开头。随着程序的进行,我计划将列表中的值从0更改为其他数字。有效地,我想知道是否有方法可以重写'while'语句以检查0是否在任何列表中,而没有'while not in __ and not in __'等长链。
忽然笑
慕的地6264312
相关分类