回答編集履歴
1
修正
test
CHANGED
@@ -22,7 +22,7 @@
|
|
22
22
|
|
23
23
|
|
24
24
|
|
25
|
-
if image_mode
|
25
|
+
if image_mode is Mode.gray:
|
26
26
|
|
27
27
|
print('hoge')
|
28
28
|
|
@@ -30,7 +30,9 @@
|
|
30
30
|
|
31
31
|
|
32
32
|
|
33
|
+
**修正:** 比較をisに変更。[列挙型メンバーは同一性を比較できます](https://docs.python.jp/3/library/enum.html#comparisons)
|
34
|
+
|
33
|
-
[Wandbox](https://wandbox.org/permlink/
|
35
|
+
[Wandbox](https://wandbox.org/permlink/LicW0bwAaDy3nmnH)
|
34
36
|
|
35
37
|
|
36
38
|
|