my_list = []
#判断列表是否为空
if len(my_list)==0:
    print('my_list is empty!')
else:
    print('my_list is not empty!')