发布时间:2019-07-13 11:37:12编辑:auto阅读(1666)
python的len函数:
Python len() 方法返回对象(字符、列表、元组等)长度或项目个数。
如:
ret = os.popen('netstat -ntpl | grep apache2').readlines()
if len(ret) < 2:
if len(ret) == 0:
上一篇: Python之装饰器
下一篇: python 虚环境部署
50492
49793
40392
37411
31831
28692
27622
22407
22407
20720
478°
1094°
895°
831°
1076°
953°
1565°
2929°
2607°
2006°