작성
·
381
1
The popitem()
method removes the item that was last inserted into the dictionary. In versions before 3.7, the popitem()
method removes a random item.
popitem의 동작이 랜덤이었다가 버전이 올라가면서 뒤의 내용을 pop하는건 알겠습니다.
다만 사용하시는 버전에 맞춰서 설명이 되면 좋을것 같네요. 화면상에서 보면 랜덤아이템을 pop하는것이 아니라 가장 마지막 데이터부터 pop이 되고있습니다.