val num = 10 when{ num in 0..4 ->{ } num >= 6 ->{} else ->{} }
val num = 10 when{ num>=0 && num < 5->{ } num >= 6 ->{} else ->{} }
num>=0 && num < 5
num in 0..4in 表示的范围 前后都包括。