본문 바로가기 메뉴 바로가기

배우기를 멈추는 사람은 20세건 80세건 늙은 것이다.

프로필사진
  • 글쓰기
  • 관리
  • 태그
  • 방명록
  • RSS

배우기를 멈추는 사람은 20세건 80세건 늙은 것이다.

검색하기 폼
  • 분류 전체보기 (1984)
    • About Me (23)
      • 만든것 (7)
    • 읽은책 (38)
    • 공부 (1923)
      • 툴 (45)
  • 방명록

티스토리 뷰

공부

[Python] if isinstance(object, [list, dict])

승가비 2022. 1. 10. 20:55
728x90

https://stackoverflow.com/questions/26544091/checking-if-type-list-in-python

 

Checking if type == list in python

I may be having a brain fart here, but I really can't figure out what's wrong with my code: for key in tmpDict: print type(tmpDict[key]) time.sleep(1) if(type(tmpDict[key])==list): ...

stackoverflow.com

https://stackoverflow.com/questions/25231989/how-to-check-if-a-variable-is-a-dictionary-in-python

 

How to check if a variable is a dictionary in Python?

How would you check if a variable is a dictionary in Python? For example, I'd like it to loop through the values in the dictionary until it finds a dictionary. Then, loop through the one it finds: ...

stackoverflow.com

 

728x90
저작자표시 비영리 (새창열림)

'공부' 카테고리의 다른 글

[Java] MySQL if check exists table  (0) 2022.01.10
[Java] MySQL select value  (0) 2022.01.10
[MySQL] Types  (0) 2022.01.10
[Java] JSON Object  (0) 2022.01.10
[Java] RandomUtils  (0) 2022.01.10
댓글
250x250
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
  • 개발을 좋아하는 분 - 마이구미
  • 성공하실 여성 개발자 - 햄과함께
TAG
  • 레퍼럴
  • 테슬라 리퍼럴 코드
  • 모델 Y 레퍼럴
  • 테슬라 리퍼럴 코드 혜택
  • 김달
  • 책그림
  • 클루지
  • 팔로워 수 세기
  • COUNT
  • 테슬라 추천
  • 메디파크 내과 전문의 의학박사 김영수
  • 테슬라 레퍼럴 적용 확인
  • 테슬라 크레딧 사용
  • 할인
  • 인스타그램
  • Bot
  • wlw
  • Kluge
  • 테슬라 리퍼럴 코드 생성
  • 테슬라
  • 유투브
  • 연애학개론
  • 테슬라 레퍼럴
  • 모델y
  • 개리마커스
  • follower
  • Instagram
  • 어떻게 능력을 보여줄 것인가?
  • 테슬라 레퍼럴 코드 확인
more
«   2025/07   »
일 월 화 수 목 금 토
1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31
글 보관함

Blog is powered by Tistory / Designed by Tistory

티스토리툴바