파이썬은 사전을 통해 반복
a_dict = {'apple':'red', 'grass':'green', 'sky':'blue'}
for key in a_dict:
print key # for the keys
print a_dict[key] # for the values
사전 파이썬 목록 반복
Iteration over list of dic
사전 배열을 통한 파이썬 루프
dataList = [{'a': 1}, {'b': 3}, {'c': 5}]
for index in range(len(dataList)):
for key in dataList[index]:
print(dataList[index][key])