AList = [[5,8], [3,6], [4,5], [3,8],[6,2]] for i in range(len(AList)): AList.append(AList[0][0]*AList[0][1]) temp=AList.pop(0) print("AList="+str(AList))
二、
AList = [[5,8], [3,6], [4,5], [3,8],[6,2]] for i in AList: AList_Fist.append(i[0]) print("AList_Fist="+str(AList_Fist))