摘要: Python条件控制语句是通过一条或者多条语句执行的结果(True或者False)来决定执行的代码块。 Python中用if语句来进行条件判断的表达式如下: 1、 if单独使用 if condition statement_block 例: age = 20 if age >= 18: print( 阅读全文
posted @ 2018-10-02 22:18 ITdafei 阅读(128) 评论(0) 推荐(0) 编辑