阅读背景:

避免此列表理解中的冗余

来源:互联网 

How can I avoid querying the set object sol unnecessarily in this list comprehension? Currently, I query it twice for each object, once in the ternary and once in the predicate. However, I cannot think of a more elegant solution. Is there one? unn




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: