for 루프를 풀고 싶은 목록이 있지만 문제가 있습니다.for 루프에서 목록의 목록을 풀 때 문제가 있습니까?
>>> a_list = [(date(2010, 7, 5), ['item 1', 'item 2']), (date(2010, 7, 6), ['item 1'])]
>>>
>>> for set in a_list:
... a, b = set
... print a, b
...
2010-07-05 ['item 1', 'item 2']
2010-07-06 ['item 1']
>>>
>>> for set in a_list:
... for a, b in set:
... print a, b
...
Traceback (most recent call last):
File "<stdin>", line 2, in <module>
TypeError: 'datetime.date' object is not iterable
어떻게 처음 작동 하나 두 번째 엔진은 작동하지 않습니까?