当前位置:网站首页>Why are the values of ordereddict not equal- Why are the values of an OrderedDict not equal?
Why are the values of ordereddict not equal- Why are the values of an OrderedDict not equal?
2022-06-12 00:22:00 【Superior virtue and weak water】
problem :
With Python 3: Use Python 3:
>>> from collections import OrderedDict>>> d1 = OrderedDict([('foo', 'bar')])>>> d2 = OrderedDict([('foo', 'bar')])I wanted to check for equality: I want to check for equality :
>>> d1 == d2True>>> d1.keys() == d2.keys()TrueBut: but :
>>> d1.values() == d2.values()FalseDo you know why values are not equal? Do you know why the values are not equal ?
I've tested this with Python 3.4 and 3.5. I've used Python 3.4 and 3.5 This was tested .
Following this question, I posted on the Python-Ideas mailing list to have additional details: After this question , I am here Python-Ideas More details posted on the mailing list :
https://mail.python.org/pipermail/python-ideas/2015-December/037472.htmlhttps://mail.python.org/pipermail/python-ideas/2015-December/037472.html
Solution :
Reference resources : https://stackoom.com/en/question/2JyIE边栏推荐
- The time selector style is disordered and the middle text is blocked
- 2022 Tibet latest special worker (construction elevator) simulation test question bank and answers
- 明德扬FPGA开发板XILINX-K7核心板Kintex7 XC7K325 410T工业级
- The road of global evolution of vivo global mall -- multilingual solution
- DOM知識點總結
- SAP SD create / modify price list
- gin解决跨域问题
- How to achieve fair and equitable data access and service ecology?
- Design principle [Demeter's Law]
- 时间选择器样式错乱 中间文字被遮挡
猜你喜欢

How to change the font size of Apple phone WPS

App startup process: from clicking the application icon to the activity startup process

Cube technology interpretation | detailed explanation of cube applet Technology

How does Kingview use the wireless host link communication module to remotely collect PLC data?

C language leetcode deleting duplicate items in an ordered array

R language spline curve piecewise linear regression model piecewise regression estimation of individual stock beta value analysis of yield data

win10文件夹状态红叉表示的是什么

IP编址概述

How many steps does it take for C language to become Fibonacci number

七个需要关注的测试自动化趋势
随机推荐
Binary sort tree
Chisel environment setup (win10 + vscode)
What are the advantages of Tiktok applet
voc数据格式转为coco数据格式
Mmdetection custom fetch detection result script and image_ demo. Py parsing
Use select to switch coroutines
App startup process: from clicking the application icon to the activity startup process
Cube technology interpretation | detailed explanation of cube applet Technology
Balanced binary tree (AVL tree)
926. Flip String to Monotone Increasing
Experiment 7 class construction and static member function
The "hard words" about interface testing
win10系统pscs6如何卸载
Is the o2o platform worth doing in 2022
What is bonded warehouse and what is the difference between them
SF14 | supertrend "super trend" indicator magic change and upgrade (source code)
How to optimize plantuml flow diagram (sequence diagram)
730.Count Different Palindromic Subsequences
2022 Tibet's latest eight members (security officer) simulated test question bank and answers
[flume] notes
