This inspection highlights chained comparisons that can be simplified.

Posted 蚂蚁flow

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了This inspection highlights chained comparisons that can be simplified.相关的知识,希望对你有一定的参考价值。

https://stackoverflow.com/questions/26502775/pycharm-simplify-chained-comparison

 

In Python you can "chain" comparison operations which just means they are "and"ed together. In your case, it‘d be like this:

if start <= x <= end:

Reference: https://docs.python.org/2/reference/expressions.html#not-in

 

以上是关于This inspection highlights chained comparisons that can be simplified.的主要内容,如果未能解决你的问题,请参考以下文章

Usage of API documented as @since 1.8+ less... (Ctrl+F1) Inspection info: This inspection finds all

无法获得实时信息的芹菜任务

安卓手机的touchend事件不触发问题

jquery_扩展

jQuery链式操作[转]

Chrome DevTools 没有inspect按钮