Python: Будьте осторожны с .popitem()

Используйте .popitem(), только когда вы точно уверены, что элемент надо удалить.

Если надо получить значение, не удаляя элемент, используйте .copy().popitem().

 
0
Kudos
 
0
Kudos

Now read this

How to Hire Your First Tech Writer

I’ve been a tech writer for several years before switching to a management job. Having been both tech writer and manager, I’ve built a strong vision of what a good tech writer should be able to do. I’m writing this vision down in the... Continue →