发布时间:2019-07-13 11:37:12编辑:auto阅读(2062)
python的len函数:
Python len() 方法返回对象(字符、列表、元组等)长度或项目个数。
如:
ret = os.popen('netstat -ntpl | grep apache2').readlines()
if len(ret) < 2:
if len(ret) == 0:
上一篇: Python之装饰器
下一篇: python 虚环境部署
53092
40017
34398
30148
25047
24846
23220
16700
14854
14351
686°
639°
698°
720°
765°
898°
859°
879°
974°
897°