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

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

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

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

  if len(listone) == 0:

相关文章:

  • 2021-09-09
  • 2022-12-23
  • 2022-12-23
  • 2021-12-04
  • 2021-12-21
  • 2021-11-06
  • 2022-12-23
猜你喜欢
  • 2021-12-18
  • 2021-11-27
  • 2021-11-28
  • 2021-07-25
  • 2022-12-23
  • 2022-12-23
  • 2022-01-02
相关资源
相似解决方案