python菜鸟教程学习5: 条件循环语句
- if条件语句:if – elif – else
1 if condition_1: 2 statement_block_1 3 elif condition_2: 4 statement_block_2 5 else: 6 statement_block_3
1 if condition_1: 2 statement_block_1 3 elif condition_2: 4 statement_block_2 5 else: 6 statement_block_3