본문으로 바로가기
if 'key' in dict.keys():
    print "있음"
else:
    print "없음"

Python카테고리의 다른글

python 문자열에서 html 태그 없애기  (0) 2020.02.24
list[]를 문자열로 합치기  (0) 2020.02.24
Confluence python-api 참고  (0) 2020.02.24
BeautifulSoup 사용  (0) 2020.02.24
django SECRET_KEY 따로 관리하기  (0) 2019.12.20