发布时间:2019-07-13 11:37:12编辑:auto阅读(1792)
python的len函数:
Python len() 方法返回对象(字符、列表、元组等)长度或项目个数。
如:
ret = os.popen('netstat -ntpl | grep apache2').readlines()
if len(ret) < 2:
if len(ret) == 0:
上一篇: Python之装饰器
下一篇: python 虚环境部署
51565
51145
41663
38420
32905
29880
28599
23559
23492
21837
1987°
2695°
2261°
2186°
2637°
2201°
2949°
4884°
4716°
3357°