實現以下目標的pythonic方式是什麼?元組的合併列表
來自:
l1 = ([('ADJ', 29), ('CONJ', 1), ('PRT', 2), ('X', 3), ('ADV', 18), ('VERB', 52), ('ADP', 1), ('NOUN', 27)])
l2 = ([('ADJ', 312), ('INTJ', 2), ('ADP', 5), ('PART', 6), ('DET', 2), ('ADV', 323), ('VERB', 1196), ('NOUN', 1162)])
到:
l3 = ([('ADJ', 312,29), ('ADP', 5,1), ('ADV', 323,18), ('VERB', 1196,52), ('NOUN', 1162,27)])
顯示您的嘗試,它的拼寫'元組' –