选择 if 条件结构:判断条件是boolean值 //if语句 if(条件){ <语句块> } //if-else语句 if(条件){ <语句块> //当条件判断结果为 true 时执行 } else{ <语句块<