• 2022-05-28
    有列表定义如下:[br][/br]group1 = [ ["萧峰", 98], ["杨过", 96] ] 要提取两位大侠的名字"萧峰"和"杨过",应该采用下面哪种方法
    A: n = [ item[0] for item in group1 ]
    B: n =[ item[1] for item in group1 ]
    C: n = group1[0],group1[1]
    D: n = [ item for item in group1 ]