python2 data_info = { 'account': 1, 'remark': 2, 'sort': '', 'weight': '', } for key in data_info.keys(): if not data_info.get(key): del data_info[key] python3 data_info = { 'account': 1, 'remark': 2, 'sort': '', 'weight': '', } for key in list(data_…