bool的默認(rèn)值是false.
bool a = true;
if (a)//當(dāng)bool是true時(shí),執(zhí)行if(a)
{ Console.Write("123"); }
else//當(dāng)bool是false時(shí),執(zhí)行else
{ Console.Write("456"); }