例:
complete_dict = dict()
common_set = set()
for count, group_name in enumerate(groups_dict):
complete_dict[group_name] = dict() # grabs a json file = group_name.json
if count > 0:
common_set.intersection_update(complete_dict[group_name])
else:
# this accounts for the fact common_set is EMPTY to begin with
common_set.update(complete_dict[group_name])
WHERE: dict2
(グループの) メンバーの k:v を含む: int(x)
交差点の初期状態を処理するより適切な方法はありますか?
つまり、最初のものは空であり、したがって結果もcomplete_dict[group_name]
空であるため、最初のものと交差することはできません。common_set