判断语句
if x > 0 and x <= 10:
pass
elif x > 10 and x <=- 20:
pass
else:
pass
循环语句
for i in range(1, 11):
pass
while i < 100:
pass
break:结束循环
continue:跳出本次循环
相当于C语言的判断和循环,for循环类似于C++11中的for循环for(auto i : vect)。条件判断使用and or 和not,判断表达式。