题解 | #朋友们的喜好#
朋友们的喜好
https://www.nowcoder.com/practice/c62ef46892ef4c478802df983f8624b7
name = ['Niumei', 'YOLO', 'Niu Ke Le', 'Mona']
food=['pizza', 'fish', 'potato', 'beef']
number=[3, 6, 0, 3]
friends=[]
friends.append(name)
friends.append(food)
friends.append(number)
food=['pizza', 'fish', 'potato', 'beef']
number=[3, 6, 0, 3]
friends=[]
friends.append(name)
friends.append(food)
friends.append(number)
print(friends)
##不用特意去初始化二维列表,列表可以存放列表