python interest.py

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了python interest.py相关的知识,希望对你有一定的参考价值。

from numpy import logical_and

def interest(d: dict, **kwargs: dict) -> dict:
    where = reduce(logical_and, (d[k] == v for k, v in kwargs.items()))
    return d[where]

以上是关于python interest.py的主要内容,如果未能解决你的问题,请参考以下文章