假设在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)那样的函数?
2 回答1.6k 阅读✓ 已解决
4 回答2.2k 阅读
1 回答1.5k 阅读✓ 已解决
2 回答2.2k 阅读
1 回答1.3k 阅读✓ 已解决
1 回答1.2k 阅读✓ 已解决
1 回答1.4k 阅读