if 3 == 3: name = "nginx"else: name = "tomcat"print(name)# nginx
####################### # 上边的判断句和下面的是一个意思name = "nginx" if 3 == 3 else "tomcat"print(name)# nginx