10月9日学习日志

Python条件语句。

Python中if语句的一般形式如下所示:

if condition_1:
    statement_block_1
elif condition_2:
    statement_block_2
else:
    statement_block_3

 

posted @ 2021-10-09 19:48  张笑天  阅读(27)  评论(0编辑  收藏  举报