結果 : check if a dict is not empty python