Python if elif 语句 Python If Else 语句 Python 嵌套if语句 Python if elif 语句 #!/usr/bin/python var = 100 if var == 200: print "1 - Got a true expression value" print var elif var == 150: print "2 - Got a true expression value" print var elif var == 100: print "3 - Got a true expression value" print var else: print "4 - Got a false expression value" print var print "Good bye!" Python If Else 语句 Python 嵌套if语句