题解 | #格式化清单#
格式化清单
https://www.nowcoder.com/practice/91041d28883847d2af52e98e3df14b53
list_new = ['apple', 'ice cream', 'watermelon', 'chips', 'hotdogs', 'hotpot']
while list_new:
list_new.pop()
print(list_new)
while, if,等条件判断语句可以判断列表,集合,字符串是否为空