🌈 搜索
📅  最后修改于: 2022-03-11 14:46:09.628000             🧑  作者: Mango
def takeClosest(num,collection): return min(collection,key=lambda x:abs(x-num))