NP57. 格式化清单
描述
输入描述
无输出描述
Python 解法, 执行用时: 10ms, 内存消耗: 2828KB, 提交时间: 2022-08-04
list=['apple', 'ice cream', 'watermelon', 'chips', 'hotdogs', 'hotpot'] while len(list)>0: list.pop() print(list) continue
Python 解法, 执行用时: 10ms, 内存消耗: 2868KB, 提交时间: 2022-08-01
food = ['apple', 'ice cream', 'watermelon', 'chips', 'hotdogs', 'hotpot'] while len(food): food.pop() print(food)
Python 解法, 执行用时: 11ms, 内存消耗: 2844KB, 提交时间: 2022-07-27
a = ['apple', 'ice cream', 'watermelon', 'chips', 'hotdogs', 'hotpot'] while len(a) != 0: a.pop(-1) print(a)
Python 解法, 执行用时: 11ms, 内存消耗: 2860KB, 提交时间: 2022-08-04
food_list = ['apple', 'ice cream', 'watermelon', 'chips', 'hotdogs', 'hotpot'] while len(food_list) > 0: food_list.pop() print(food_list)
Python 解法, 执行用时: 11ms, 内存消耗: 2868KB, 提交时间: 2022-08-05
food = ['apple','ice cream','watermelon','chips','hotdogs','hotpot'] while len(food): food.pop() print(food)