python基础语法--if--elif--else条件语句

1. if 语句

if expression:
    expr_true_suite
#例子:
if 2 > 1 and not 2 > 3:
    print('Correct Judgement!')
#输出:
Correct Judgement!

2. if - else 语句

if

你可能感兴趣的:(python,python)