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

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

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

 
0
Kudos
 
0
Kudos

Now read this

Exploring Karax

I’ve been programming in Python for some ten years, but for the last couple of years Nim has become my new love. In this short post I’m discovering Nim as a frontend language by exploring Karax framework. Note that I’m not a frontend... Continue →