개요
- Iterating Over Dictionary Key Values Corresponding to List in Python
- 파이썬 for루프 키 포함
- 파이썬 딕셔너리 for루프 키-값
d = { 'id': 42, 'name': 'John Smith', 'birthyear': 2000 }
for key, value in d.items():
print( key, ':', value )
d = { 'id': 42, 'name': 'John Smith', 'birthyear': 2000 }
for key, value in d.items():
print( key, ':', value )