List 列表中所有值的If语句

List 列表中所有值的If语句,list,python-2.7,if-statement,for-loop,List,Python 2.7,If Statement,For Loop,我想知道如何获得所有列表索引的if语句 #a = int(input("a ")) a = [10,10,10] #b = int(input("b ")) b = [100,10,10] #c = int(input("c ")) c = [10,10,10] #d = int(input("d ")) d = [100,10,10] for itema in a: print itema for itemb in b: print itemb for itemc in c:

我想知道如何获得所有列表索引的if语句

#a = int(input("a "))
a = [10,10,10]
#b = int(input("b "))
b = [100,10,10]
#c = int(input("c "))
c = [10,10,10]
#d = int(input("d "))
d = [100,10,10]

for itema in a:
    print itema
for itemb in b:
    print itemb
for itemc in c:
    print itemc
for itemd in d:
    print itemd

if itema>=itemd:
    print "make math equation nr.1"
elif itemb<itemd:
    print "make math equation nr.2"
#a=int(输入(“a”))
a=[10,10,10]
#b=int(输入(“b”))
b=[100,10,10]
#c=int(输入(“c”))
c=[10,10,10]
#d=int(输入(“d”))
d=[100,10,10]
对于a中的项目a:
打印项目a
对于b中的b项:
打印项目B
对于c中的项目c:
打印项目C
对于d中的d项:
打印项目
如果itema>=itemd:
打印“制作第1号数学方程式”
elif itemb这可能有帮助:

for itema, itemb, itemd in zip(a, b, d):
    if itema > itemd:
        print('eq 1')
    elif itemb < itemd:
        print('eq. 2')
对于zip中的项目a、项目b、项目d(a、b、d):
如果itema>itemd:
打印('eq 1')
elif itemb