i = 3; j = 4; if i > j: print 'i > j'; elif i == j: print 'i == j'; else: print 'i < j'; 注意第二个else if省略成了elif