创建空列表并判断列表是否为空

my_list = []
if not my_list:
    print('my_list is empty!')
else:
    print('my_list is not empty!')