如果添加括号,则表达式有效:
>>> y[(1 < x) & (x < 5)]array(['o', 'o', 'a'], dtype='|S1')
上一篇 Usage of the “==” operator for three objects
下一篇 同一标签Matplotlib中的多个fontsize
版权所有 (c)2021-2022 MSHXW.COM
ICP备案号:晋ICP备2021003244-6号