IF
格式
if 条件 :语句1elif 条件2 :语句2else :语句3
注意,语句必须缩进4个空格
条件表达式
and
or
not
==
!=
<= >=
A in B A的是否包含在B里面
例子
name = input("please input name : ")if name == "" :print("sorry!Your input is wrong!")else :print("************")print("hello "+name)print("************")
