擅长:python、mysql、java
<p>您可以将JSON数据强制转换为list(),并使用列表理解过滤其他数据</p>
<pre><code>import json
data_json = list(json.load(open('file.json'))['countries'])
index_list = ['Germany', 'USA', 'Ireland', 'Australia', "France", 'Belgium', "Kenya", "Spain"]
answer = [country for country in index_list if country not in data_json]
print(answer)
</code></pre>