我有一个如下所示的数组:
[0, 1, 2, 3, {'key': 'test', 'id': 0}]
现在我正在为变量
key
id
我试过以下方法:
{% if arr contains {'key': key, 'id': id} %}
我怎样才能正确检查这个?