Not counting empty list while counting total lists count in Python
This question already has an answer here:
try
count =sum(len(x)>0 for x in combine)
链接地址: http://www.djcxy.com/p/22500.html上一篇: 在Python中计算算术平均值(平均值)
This question already has an answer here:
try
count =sum(len(x)>0 for x in combine)
链接地址: http://www.djcxy.com/p/22500.html上一篇: 在Python中计算算术平均值(平均值)