单分支: if条件: 满足条件后,要执行的代码 双分支: if条件: 满足条件后,要执行的代码 else: 不满足if条件,要执行的代码 转载于:https://www.cnblogs.com/ti5142/p/8579863.html