有人可以帮我理解下面的python语句中的逻辑是如何工作的-
return ["even", "odd"][num % 2]
此函数正确返回偶数/奇数值。
python math list slice
list ×1
math ×1
python ×1
slice ×1