How to find duplicate values in Python list dictionary
編輯:Python
# Here is a list A = [{
"id": 1, "city": " Beijing "}, {
"id": 2, "city": " Shanghai "}, {
"id": 3, "city":" Guangzhou "}, {
"id": 4, "city": " Beijing "}]# according to city Duplicate values in return id