#if判断的对象可以是非空/空的数组,若非空则判断为True,空则判断为False
a = []
if a:
#也可写为
#if a is True:
    print('my_list is not empty!')
else:
    print('my_list is empty!')