判断

有 if , 没有switch..case ,可以使用if替代

if x < 0:
   xxxx
elif x == 0:
   xxxx

// elif 是else if的缩写

Last updated