5、对于某顾客的购物清单,如customer1 = [("Apple", 2.5, 5.99), ("Bread", 2, 3.5)] 其中第一个分量、第二个分量和第三个分量分别表示品名、单价和单位,那么取得所有吗列表的表达式是

A.fst customer1 B.[fst x | x <- customer1] C.[x | (x,y,z) <- customer1] D.[x | fst x <- customer1]

时间:2023-03-05 16:03:03

相似题目