NP27. 朋友们的喜好
描述
输入描述
无输出描述
Python 解法, 执行用时: 9ms, 内存消耗: 2856KB, 提交时间: 2022-07-19
friends=[] name = ['Niumei','YOLO','Niu Ke Le','Mona'] friends.append(name) food = ['pizza','fish','potato','beef'] friends.append(food) number = [3,6,0,3] friends.append(number) print(friends)
Python 解法, 执行用时: 9ms, 内存消耗: 2868KB, 提交时间: 2022-08-02
name = ['Niumei', 'YOLO', 'Niu Ke Le', 'Mona'] hobit = ['pizza', 'fish', 'potato', 'beef'] num = [3, 6, 0, 3] friend = [] friend.append(name) friend.append(hobit) friend.append(num) print(friend)
Python 解法, 执行用时: 10ms, 内存消耗: 2840KB, 提交时间: 2022-07-26
name=['Niumei','YOLO','Niu Ke Le','Mona'] food=['pizza','fish','potato','beef'] number=[3,6,0,3] friend=[name,food,number] print(friend)
Python 解法, 执行用时: 10ms, 内存消耗: 2840KB, 提交时间: 2022-06-09
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) print(friends)
Python 解法, 执行用时: 10ms, 内存消耗: 2844KB, 提交时间: 2022-07-14
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) print(friends)