回答編集履歴
1
みすった
answer
CHANGED
@@ -3,6 +3,9 @@
|
|
3
3
|
>>> test2 = {'aaa':29, 'bbb':10}
|
4
4
|
>>> all(test1[key] == test2[key] for key in test1)
|
5
5
|
False
|
6
|
+
>>> test1 == test2
|
7
|
+
False
|
8
|
+
>>> test2['bbb'] = 40
|
9
|
+
>>> test1 == test2
|
10
|
+
True
|
6
|
-
```
|
11
|
+
```
|
7
|
-
|
8
|
-
関数にすると汎用性がさらにましましです。
|