food = ["apple", "ice cream", "watermelon", "chips", "hotdogs", "hotpot"]
while food:
    food.pop()
    print(food)

while循环当遇到空值时返回False,pop方法是有返回值的,有时候会拿来当链表用