【发布时间】:2022-01-02 05:00:20
【问题描述】:
假设我在 Python 程序中有以下字典:
the_dictionary_list = {'Color': ['None', 'Amarillo.png', 'Blanco.png', 'Rojirosado.png', 'Turquesa.png', 'Verde_oscuro.png', 'Zapote.png'], 'Cuerpo': ['None', 'Cuerpo_cangrejo.png'], 'Fondo': ['None', 'Oceano.png'], 'Ojos': ['None', 'Antenas.png', 'Pico.png', 'Verticales.png'], 'Pinzas': ['None', 'Pinzitas.png', 'Pinzotas.png', 'Pinzota_pinzita.png'], 'Puas': ['None', 'Arena.png', 'Marron.png', 'Purpura.png', 'Verde.png']}
如何验证上面字典中的每个键中都存在元素 'None'?
【问题讨论】:
标签: arrays python-3.x loops dictionary