<分区> 分区>
即使那些比较没有意义,为什么
list() == 1
#return: False
但是
list() > 1
#return: '>' not supported between instances of 'list' and 'int'
对我来说,两个比较运算符应该具有相同的行为,但事实并非如此。顺便说一句,我正在使用 Python 3.7。
<分区> 分区>
即使那些比较没有意义,为什么
list() == 1
#return: False
但是
list() > 1
#return: '>' not supported between instances of 'list' and 'int'
对我来说,两个比较运算符应该具有相同的行为,但事实并非如此。顺便说一句,我正在使用 Python 3.7。