if 1==2: print('A')elif 1==1: print('C')elif 1==1: print('D')else: print('E')只要elif中的条件成立,之后条件的就不会进行判断