假设在DolphinDB中有下列2个字典:
dict1 = {'a': 1, 'b': 2, 'c': '3'}
dict2 ={'a': 1, 'b': 2, 'c': 3}
我想比较2个字典是否一样,用
eqObj(dict1,dict2)
执行显示The comparison of DICTIONARY is not supported。请问dolphindb有没有比较字典元素的函数,即类似python2中的cmp(dict1,dict2)那样的函数?
假设在DolphinDB中有下列2个字典:
dict1 = {'a': 1, 'b': 2, 'c': '3'}
dict2 ={'a': 1, 'b': 2, 'c': 3}
我想比较2个字典是否一样,用
eqObj(dict1,dict2)
执行显示The comparison of DICTIONARY is not supported。请问dolphindb有没有比较字典元素的函数,即类似python2中的cmp(dict1,dict2)那样的函数?
757 阅读
1 回答691 阅读