1、len语法:
Len(,)
2、参数:
无
3、len函数描述:
返回对象(字符、列表、元组等)长度或项目个数。
4、实例:
ret = os.popen('netstat -ntpl | grep apache2').readlines() if len(ret) < 2: if len(ret) == 0:
上一篇:python中main函数有什么用
下一篇:python中setattr函数的用法