소개
새로운 기술 습득에 노력하고 있으며, 트렌디한 IT 기술에 관심이 많은 개발자 입니다. 빅데이터 & 기계학습 현업 개발에 최선을 다해 매진 중 입니다.
– 현 빅테크 기업 엔지니어 재직 중
– 인프런 오리지날 파이썬 Level 1, 2, 3, 4 강의
– 패스트캠퍼스(fastcampus) 파이썬 기반 관련 강의
– 숭실대학교 일반대학원 IT 융합학과 졸업
– 삼성 SDS 멀티캠퍼스(딥러닝 기반 빅데이터 분석 전문가 과정) 기술 Part 강의
– 기술블로그 : http://niceman.tistory.com/
강의
전체3수강평
게시글
질문&답변
2024.04.25
10:26 popitem() 질문입니다
안녕하세요. 좋은 질문 감사합니다. 현재 사용하시는 파이썬 버전에서는 마지막 값이 제거 되는 것이 맞습니다. 과거에는 공식 레퍼런스를 보시면 버전에 따라서 랜덤 아이템 또는 마지막 아이템이 제거 되는 함수 입니다. 그래서 버전에 따라 random 함수하고 같이 사용 하는 경우가 많습니다. Python Dictionary popitem () Method 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. The removed item is the return value of the popitem () method, as a tuple, see example below. popitem () Remove and return a (key, value) pair from the dictionary. Pairs are returned in LIFO order. popitem() is useful to destructively iterate over a dictionary, as often used in set algorithms. If the dictionary is empty, calling popitem() raises a KeyError . Changed in version 3.7: LIFO order is now guaranteed. In prior versions, popitem() would return an arbitrary key/value pair. 버전별로 동작이 상이 하기 때문에 외국 포럼에서도 질문이 자주 등장합니다. https://stackoverflow.com/questions/4809044/removing-items-randomly-from-a-dictionary 감사합니다.
- 0
- 1
- 24
질문&답변
2024.04.24
강의자료 부탁드립니다.
네 알겠습니다.
- 0
- 1
- 22
질문&답변
2024.04.18
안녕하세요 강의자료 부탁드립니다!
네 감사합니다.
- 0
- 1
- 38
질문&답변
2024.04.18
12:47 index 함수 질문입니다.
네 맞습니다. 인덱스 번호를 가져오는 함수입니다. 확인 후 수정해놓도록 하겠습니다. https://m.blog.naver.com/sw4r/221976911807
- 0
- 1
- 36
질문&답변
2024.04.17
강의자료 부탁드립니다
네네 감사합니다.
- 0
- 1
- 43