关于判断为空

一、python判断list()是否为空

  python判断list()是否是[]的时候判断它的长度,

  例如:listone = ["Name","NameId"]

  if listone == [] 或者listone == [""] 这两种写法就是没有动过脑子的结果,尤其是 []和[""]能一样吗?

  if len(listone) == 0:

原文地址:https://www.cnblogs.com/mxh1099/p/5199129.html