li = [{'a': 1}, {'b': 2}, {'c': 3}] ###(1) 迴圈獲取字典裡每個鍵值對: >>> for i in range(len(li)): ... for k, v in li[i].items(): ... print(k, v) ...
確定! 回上一頁