python3 中一般不同类型的比较会返回 exception
比如( 'a'<'b')<'c' 和 'a'<('b'<'c') 都会返回 TypeError: '<' not supported between instances of 'bool' and 'str'
但 'a'<'b'<'c' 返回了 True,这是什么原因呢?
比如( 'a'<'b')<'c' 和 'a'<('b'<'c') 都会返回 TypeError: '<' not supported between instances of 'bool' and 'str'
但 'a'<'b'<'c' 返回了 True,这是什么原因呢?