当前位置:网站首页>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 road of global evolution of vivo global mall -- multilingual solution
- R language spline curve piecewise linear regression model piecewise regression estimation of individual stock beta value analysis of yield data
- Month selector disable data after the current month to include the current month
- How many steps does it take for C language to become Fibonacci number
- Pre resolution and scope
- wps表格怎么取消智能表格样式
- 手机wps如何压缩文件打包发送
- Optimization method of win7 FPS
- 设计消息队列存储消息数据的 MySQL 表格
- The time selector style is disordered and the middle text is blocked
猜你喜欢

How much does it cost to develop s2b2c mall system

Anaconda download package error: valueerror: check_ hostname requires server_ hostname

Construction environnementale 2

Web keyboard input method application development guide (2) -- keyboard events

2022 Tibet latest special worker (construction elevator) simulation test question bank and answers

How to send Apple phone WPS files to QQ mailbox

Wechat applet Chinese English conversion

Environment construction 2

Invalid spacing setting before WPS Title segment solution

Matplotlip basic drawing learning of data analysis - 01
随机推荐
10. logical statement
Month selector disable data after the current month to include the current month
JS -- prevent automatic recovery of page position
2022 Tibet's latest eight members (security officer) simulated test question bank and answers
chisel环境搭建(win10 + vscode)
Summary of DOM knowledge points
点云库pcl从入门到精通学习记录 第八章
What are the advantages of Tiktok applet
Teach you to play with SSM framework
Anfulai embedded weekly report (issue 254): February 21, 2022 to February 27, 2022
The "hard words" about interface testing
Balanced binary tree (AVL tree)
Mmdetection custom fetch detection result script and image_ demo. Py parsing
How to measure the app project? How to build a test system
2022 Tibet latest special worker (construction elevator) simulation test question bank and answers
Jiaming's day13 of C learning -- structure and structure pointer
Creating and running JMeter performance test scenarios
Dom Knowledge point Summary
通过财报读懂企业的23个步骤
[signals and systems] (XXI) Laplace transform and complex frequency domain analysis -- Laplace transform and its properties
