if
if condition_1:
statement_block_1
elif condition_2:
statement_block_2
else:
statement_block_3
if 表达式1: 语句 if 表达式2: 语句 elif 表达式3: 语句 else: 语句 elif 表达式4: 语句 else: 语句
if
if condition_1:
statement_block_1
elif condition_2:
statement_block_2
else:
statement_block_3
if 表达式1: 语句 if 表达式2: 语句 elif 表达式3: 语句 else: 语句 elif 表达式4: 语句 else: 语句