python 判断列表不是空的 if(mylist)

mylist=[]
if mylist:
    print("mylist is not empty")
else:
    print("mylist is empty")